Skip to content

Instantly share code, notes, and snippets.

@MHebes
MHebes / sanitize-plex-logs.sh
Created January 7, 2021 02:47
Simple bash script to sanitize the logs from your plex server before posting them somewhere
#!/bin/sh
# Script for removing emails, IPs, and other sensitive info from log files.
if [ $# -eq 0 ]; then
echo "Usage: $0 [-i] [file ...]"
exit 1
fi
# Extended, case-insensitive regex patterns for things you want to remove