Skip to content

Instantly share code, notes, and snippets.

@dergachev
Last active September 28, 2016 14:56
Show Gist options
  • Save dergachev/5766167 to your computer and use it in GitHub Desktop.
Save dergachev/5766167 to your computer and use it in GitHub Desktop.
shell snippet to prepend timestamp to command output
# 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