Skip to content

Instantly share code, notes, and snippets.

@tomoyamkung
Created July 20, 2012 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomoyamkung/3148457 to your computer and use it in GitHub Desktop.
Save tomoyamkung/3148457 to your computer and use it in GitHub Desktop.
tar で圧縮する際に本日日付を付ける
## どうも忘れっぽくてダメだ
$ tar cvzf DIR_NAME.`date +%Y%m%d`.tar.gz DIR_NAME # => DIR_NAME.20120720.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment