#/usr/bin/env bash
LIST=$1
LEN=$2
for i in $(cat $LIST); do
[ ${#i} -le $LEN ] && echo $i
done
$ bash wordlist_length.sh top25-2014.txt 6
123456
12345
qwerty
1234
dragon
monkey
abc123
111111
access
shadow
master
696969
123123
batman
#/usr/bin/env bash
LIST=$1
LEN=$2
for i in $(cat $LIST); do
[ ${#i} -le $LEN ] && echo $i
done
$ bash wordlist_length.sh top25-2014.txt 6
123456
12345
qwerty
1234
dragon
monkey
abc123
111111
access
shadow
master
696969
123123
batman