Skip to content

Instantly share code, notes, and snippets.

@pd76
pd76 / redactor.sh
Created November 9, 2024 01:03
Quickly and securely bulk-redact text documents in Linux
#!/bin/bash
# Check if a directory path was provided as an argument
if [ -z "$1" ]; then
echo "Please provide a directory path as an argument."
exit 1
fi
# Define the words to redact:
redact_words=("Cat" "Dog" "Horse")