Skip to content

Instantly share code, notes, and snippets.

@Ketouem
Created January 18, 2016 10:17
Show Gist options
  • Save Ketouem/64a0f8e502bf4b87d66a to your computer and use it in GitHub Desktop.
Save Ketouem/64a0f8e502bf4b87d66a to your computer and use it in GitHub Desktop.
Adding a timestamp on each shell output line.
# OSX brew install moreutils
# Ubuntu apt-get install moreutils
<command> | ts '[%Y-%m-%d %H:%M:%S]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment