First a coorection for my last message :
awk 'BEGIN {"date +%m%y" | getline Date} {$NF = Date; print $0}' input_file
With awk (HP-UX) and nawk (SunOS) i do not have your problem, the date printed as "0302".
I think that awk convert datedumois to numeric.
Try :
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.