Created
May 15, 2016 15:45
-
-
Save ericoporto/db39f3793df77c126a2767f69f47fb8a to your computer and use it in GitHub Desktop.
Get logs and anonimize them to send to someone friendly.
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 | |
grep --recursive "error" /var/log/ 2>&1 | sed "s/$HOSTNAME/HoStNaMe/g" | sed "s/$USER/uSeRnAmE/g" > ~/allerrors.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment