Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2014 22:46
Show Gist options
  • Save anonymous/d7d713da15294987af43 to your computer and use it in GitHub Desktop.
Save anonymous/d7d713da15294987af43 to your computer and use it in GitHub Desktop.
nicedate
<<COMMENT
NICE DATES
==========
I frequently want to make timestamped files.
The 'date' command built in formats all contain spaces and
colons and things I don't want in a file name.
So it is necessary to construct something.
I find myself needing to do this again and again, hopefully I can
record this somewhere so I don't have to keep reconstructing it.
Date in a nice format:
Wanted: YYYY-MM-DD-HH-MM
COMMENT
alias nicedate='date +%Y-%m-%d-%H-%M'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment