====== Date formatting in bash shell ====== #!/bin/bash TS=$(date +%Y%m%d_%H%M%S); # if [[ ! ("$#" == 1) ]]; then echo "Usage for $0 : required as argument." exit 1 fi