Skip to content

Anonymizing the debug log

Marcel Klehr edited this page Nov 26, 2021 · 2 revisions

Using Perl

$ perl -CSD -pe 's{(://.+\))}{$a=$1;$a=~s/\w/X/g;$a}ge; s{(\[.+\])}{$a=$1;$a=~s/\w/D/g;$a}ge'
  floccus-4.6.4-2021-07-16.log > floccus-4.6.4-2021-07-16-anonymized.log;