christiniaroelin
Programmer
Hi,
Im facing the following issue while running the below script:
output from the script : 0 6
required output : 06
#! /bin/ksh
export stamp=${stamp- "$(printf $(expr `date '+%m'` - 1 ))"}
echo $stamp
if [ $month -lt 10 ]
then
export stamp=0$stamp
fi
print $stamp
Please advice on the above.
Thanks!!
christinia
Im facing the following issue while running the below script:
output from the script : 0 6
required output : 06
#! /bin/ksh
export stamp=${stamp- "$(printf $(expr `date '+%m'` - 1 ))"}
echo $stamp
if [ $month -lt 10 ]
then
export stamp=0$stamp
fi
print $stamp
Please advice on the above.
Thanks!!
christinia