I often find myself needing to type out a timestamp into a text file. Is there a way to quickly insert the current timestamp into a file in Ubuntu?
|
feedback
|
|
You can use the
Where Look at the manual page for
Will output something like | ||||
|
feedback
|
|
Use this command at your shell prompt (or within your shell script):
| |||
|
feedback
|
|
Install xclip:
And run the following in a command prompt:
Then you can paste the datetime stamp via ctrl+v into whatever program you choose. You can put the command in a shell script and run it from a keyboard shortcut for convenience. | |||||
feedback
|
