hi all,
i had a requirement in my script iam passing the parameter like (its not the system date iam passing as argument like it can be any date)
2014-08-25
but in my output file it should be
08/25/2014
please guide me
thanks in advance
hemanthsaikumar
echo 2014-08-25 | awk -F '-' '{print $2, $3, $1}' OFS='/'
If you have this in a variable, say 'dt'
echo "${dt}" | awk -F '-' '{print $2, $3, $1}' OFS='/'
RudiC
3
Why not adapt the script to accept your output file format?
hi ,
i did it by using the same awk command
its a predefined i cant change the format
14-08-25
can i get a output like
08/25/2014