This isn't speeding anything up for me:
domains=()
for i in `seq 1 100`; do
echo $i
word=`sem "xidel -s 'https://www.thisworddoesnotexist.com/' -e '//div[@id="definition-word"]/text()'"`
len=${#word}
if [ "$len" -lt "8" ]; then
word=`echo $word | sed 's/[^a-z A-Z]//g'`
domains+=(${word}.com)
fi
done
sem --wait
printf '%s\n' "${domains[@]}"
I'm trying to run the for loop body in parallel with sem
.