Quote:
|
Originally Posted by sabercats
Oh, I would like to have the date field change as I want.
mgirinath, this one give me only the date
mahendramahendr, this one give me the out put the same as b4.
I want datetime field change from 06/02/25 11:12:36 to 02/25/2006 11:12:36
but my code got the error ? why syntax error is `(' is not expected
|
OOPS Sorry...here is date and time...
Code:
date=`echo "$3" | awk -F"/" '{ print $2"/"substr($3,1,2)"/20"$1 }'`
time=`echo "$3" | awk '{ print $2 }'`
echo $date" "$time