Created
June 2, 2022 14:40
-
-
Save dramaturg/3f13d68333afe9bb9353cc2d4a8934f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# strip out all the escape code crud | |
sed 's/\x1b\[[0-9;]*m//g' |\ | |
sed 's/\x1b\[[0-9;]*[a-zA-Z]//g' |\ | |
sed 's/\x1b\[[0-9;]*[mGKFH]//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment