Skip to content

Instantly share code, notes, and snippets.

@tadas-s
Created December 10, 2014 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadas-s/f5eb0c139219a103cad3 to your computer and use it in GitHub Desktop.
Save tadas-s/f5eb0c139219a103cad3 to your computer and use it in GitHub Desktop.
nocol
#!/bin/bash
# Strips colors/escape sequences from output
#
# Usage: annoying-color-producing-tool | nocol
sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment