Last active
August 29, 2015 14:21
-
-
Save heyseus1/f0953a5529350ad57e7e to your computer and use it in GitHub Desktop.
perl one liner that removes customer data from email logs
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
sudo grep @ mail.log | perl -p -e 's/ warning: header .*\[/header=<--removed-->,/g;s/from=<.+?@/from=<--removed-->@/g; s/to=<.+?@/to=<--removed-->@/g; s/<.+?com>/<--removed-->.com/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment