Skip to content

Instantly share code, notes, and snippets.

@beatak
Created April 10, 2018 18:30
Show Gist options
  • Save beatak/2cd6ec57bd3801981a6b7f3ca3401005 to your computer and use it in GitHub Desktop.
Save beatak/2cd6ec57bd3801981a6b7f3ca3401005 to your computer and use it in GitHub Desktop.
Removing escape sequence like a l33t
perl -ne 's/\x1b[[()=][;?0-9]*[0-9A-Za-z]?//g;s/\r//g;s/\007//g;print' < foo.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment