Skip to content

Instantly share code, notes, and snippets.

@thikade
Created January 22, 2019 14:10
Show Gist options
  • Save thikade/a3ad4b9a718abe2dc7e9430effed04e8 to your computer and use it in GitHub Desktop.
Save thikade/a3ad4b9a718abe2dc7e9430effed04e8 to your computer and use it in GitHub Desktop.
remove shell color codes / escape code
ls -l --color | perl -npe 's/\x1b(\[.*?[@-~]|\].*?(\x07|\x1b\\))//g;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment