I wanted to write a bash script that reads a word in a file and then tries to loop through the alphabet until it finds the word. This is the code I have worked out so far but I am not very sure what to do from here and any help would be appreciated.
maxlen=5
while -r file; do
for i in {a...z}; do
done
done < ~/textfilelocation
