mirror of
https://codeberg.org/cblanken/boggler.git
synced 2026-07-26 03:29:26 -04:00
Produce a prefix wordlist from a dictionary wordlist using the `filter_prefix.sh` script.
10 lines
186 B
Bash
Executable File
10 lines
186 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z $1 ] || [ -z $2 ]; then
|
|
echo "Usage: ./filter_prefix.sh WORDLIST PREFIX_LENGTH"
|
|
exit 0
|
|
else
|
|
cat "$1" | pcregrep -o1 "^([a-zA-Z]{$2})" | uniq
|
|
exit 0
|
|
fi
|