[awk] timestamp on 1st column

|awk ' { print strftime("[%Y-%m-%d %H:%M:%S]", systime()),$0 } '

---------------
output example
# echo aaaa |awk ' { print strftime("[%Y-%m-%d %H:%M:%S]", systime()),$0 } '

[2016-01-29 20:24:53] aaaa

Comments

Popular posts from this blog

[WordPress] Change https redirect in DB.

sanitize on in CMakeLists.txt