no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | tech:linux:bash_date [2015/04/09 11:46] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Date formatting in bash shell ====== | ||
+ | <code bash> | ||
+ | #!/bin/bash | ||
+ | TS=$(date +%Y%m%d_%H%M%S); | ||
+ | # | ||
+ | if [[ ! (" | ||
+ | echo "Usage for $0 : < | ||
+ | exit 1 | ||
+ | fi | ||
+ | </ | ||