Last active
September 28, 2016 14:56
-
-
Save dergachev/5766167 to your computer and use it in GitHub Desktop.
shell snippet to prepend timestamp to command output
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
| # example usage: | |
| # vagrant up | bash prepend-timestamp.sh | |
| ruby -ne 'puts "\e[33m" + Time.now().strftime("%T") + "\e[0m " + $_' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment