Last active
August 29, 2015 14:15
-
-
Save bprosnitz/02fc50d0a0f1c2fe0922 to your computer and use it in GitHub Desktop.
Make chrome console log output human readable when using --logtostderr
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
#!/bin/bash | |
sed ':a;N;$!ba;s/\(.\{279\}\)\n/\1@#@\n/g' $1 | sed 's/^\[[^]]*\]//g' | sed 's| "<autogenerated>:334: ||g' | sed 's/", source: chrome-extension:\/\/[a-zA-Z0-9.\/]* ([0-9]*)//g' | sed ':a;N;$!ba;s/@#@\n//g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment