Table of Contents

Date formatting in bash shell

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