mirror of
https://codeberg.org/cblanken/boggler.git
synced 2026-07-26 03:29:26 -04:00
Check word prefixes to reduce problem space
Produce a prefix wordlist from a dictionary wordlist using the `filter_prefix.sh` script.
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user