Random Project

Date format

awk -v now=`date +%s` ‘BEGIN{print strftime(“%b %d %T”, now)}’
gives me Aug 06 19:57:43 and log file have padded zeros Aug 6 19:57:11

I use ‘BEGIN{print strftime(“%b %e %T”, now-seconds)}’` in the script to get it to work.