Skip to content

Instantly share code, notes, and snippets.

@sharkoz
Created January 22, 2015 15:45
Show Gist options
  • Save sharkoz/a669c1487ae05222f98e to your computer and use it in GitHub Desktop.
Save sharkoz/a669c1487ae05222f98e to your computer and use it in GitHub Desktop.
Duplicate log and add timestamps
tailf -n0 bar.raw.log | while read line; do echo "$(date -R) $line" >> bar.log; done;
from : http://unix.stackexchange.com/questions/56189/appending-timestamp-stamp-along-with-log-file-lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment