This script filters a wordlist by word length, presence of digits, and symbols, and removes duplicates.
./wordlist_filter.sh wordlist.txt [min_length] [max_length] [--no-digits] [--no-symbols]wordlist.txt— input wordlist file (required)min_length— minimum word length (default: 1)max_length— maximum word length (default: 100)--no-digits— exclude words containing digits--no-symbols— exclude words containing symbols (keep only letters and digits)
Keep only words with length from 6 to 12:
./wordlist_filter.sh rockyou.txt 6 12Keep only words without digits:
./wordlist_filter.sh rockyou.txt --no-digitsKeep only words without digits and symbols:
./wordlist_filter.sh rockyou.txt --no-digits --no-symbolsThe result is saved to
filtered_<your_input_file>.txt
in the same directory as the script.
- Bash environment (Linux, macOS, WSL, or Git Bash for Windows)
- Utilities:
awk,grep,sort,uniq
- The script will not work in standard PowerShell or cmd.exe.
- For Windows, use WSL or Git Bash to run the script.