logcat clean 01

View as JSON View RAW
#!/bin/bash

in=logcat.star.txt
out=logcat.txt

black=xxx-sensitive-info-removed-xxx

cat $in \
	| sed -r "s/.*bandcamp.*/$black/" \
	| sed -r "s/.*securesms.*/$black/" \
	| sed -r "s/.*whispersystems.*/$black/" \
	| sed -r "s/.*googlemail.*/$black/" \
	| sed -r "s/fd00:[:0-9a-f]*/$black/g" \
	| sed -r "s/fe80:[:0-9a-f]*/$black/g" \
	| sed -r "s/2002:[:0-9a-f]*/$black/g" \
	| sed -r "s/[^A-Za-z0-9][0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/$black/g" \
	| sed -r "s/.*CheckinRequestProcessor.*/$black/" \
	| sed -r "s/.*keystore:.*/$black/" \
	| sed -r "s/.*wpa_supplicant.*/$black/" \
	| sed -r "s/.*NetworkAgentInfo.*/$black/" \
	| sed -r "s/.*file:.*Download.*/$black/" \
	| sed -r "s/.*PseudonymousIdApi.*/$black/" \
	| sed -r "s/deviceId=.*/$black/" \
	| sed -r "s/fritz.*/$black/" \
	| sed -r "s/([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}/$black/g" \
	> $out