Created
January 22, 2015 15:45
-
-
Save sharkoz/a669c1487ae05222f98e to your computer and use it in GitHub Desktop.
Duplicate log and add timestamps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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