Files
boggler/boggler/filter_prefix.sh
T
cblanken ac58828521 Move source files for consistency with Poetry
- By default Poetry build packages into "./packagename/packagename" instead of
"./packagename/src/packagename", this commit reflects that structure even though
poetry _could_ build normally from the original structure
2023-05-24 12:10:32 -04:00

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