Hi,
Can anybody throw somelight on how to handle date in a shell script?
I need to pass the date in this format 'yymmdd' and then pad it to a file.
The way in which i've handled is given below, but the date is not getting passed rather the file is getting created with a null date. Any expert suggestions to handle this will be much appreciated. Thanks!
DT=date -u '070101' + "%y%m%d"
FILE=XYZ
export OUT1=$TMP/${FILE}_rbm_${DT}_01.txt
export OUT3=$TMP/${FILE}_rbm_${DT}_01.txt.ctl
FILE=123
export OUT2=$TMP/${FILE}_rbm_${DT}_02.txt
export OUT4=$TMP/${FILE}_rbm_${DT}_02.txt.ctl