[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

e1000e 0000:00:1f.6 eno1: Detected Hardware Unit Hang

[WordPress] Change https redirect in DB.

sanitize on in CMakeLists.txt