This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# An overly obvious reference for most commonly requested bash timestamps | |
# Now all you Mac fags can stop pestering me. | |
cat << EOD | |
Format/result | Command | Output | |
------------------------------+----------------------------+------------------------------ | |
YY-MM-DD_hh:mm:ss | date +%F_%T | $(date +%F_%T) | |
YYMMDD_hhmmss | date +%Y%m%d_%H%M%S | $(date +%Y%m%d_%H%M%S) |