Build precise queries to find exactly what you need
Press ESC to close
@toridium
Member Since: August 6, 2013
Favorites0
Views
Projects0
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.
Reviewed 12 years ago