commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
This is useful when watching a log file that does not contain timestamps itself.
If the file already has content when starting the command, the first lines will have the "wrong" timestamp when the command was started and not when the lines were originally written.
There is 1 alternative - vote for the best!
Should be a bit more portable since echo -e/n and date's -Ins are not.
If you can do better, submit your command here.
You must be signed in to comment.