[kwlug-disc] Switching Jobs from Debian Shop to RHEL?

Paul Nijjar paul_nijjar at yahoo.ca
Fri Jul 18 12:38:19 EDT 2014


On Thu, Jul 17, 2014 at 10:50:08AM -0400, Andrew Mercer wrote:
> Joe, have you found this site yet?
> 
> http://www.commandlinefu.com/commands/browse
> 
> A lot of good stuff there if you can figure out the context lol
> 
> The most recent cool trick (to me) that I started using was this:
> 
> cp file.txt{,.bak.`date +%Y%m%d.%H%M`}
> 
> For backing up a file before editing. Saves on specifying 2 files
> and includes a timestamp.


If you only need the year, month and day (as opposed to hour and
minute), then the form 

`date --iso` 

instead of 

`date +%Y%m%d.%H%M`

is easier to type. I use this all the time. 
(Mind you, I do not know *why* this works; the --iso option does not
appear on the date(1) manpage in Debian.)

- Paul 






More information about the kwlug-disc mailing list