I have a text file, it contains a single word on each line.
I need a loop in bash to read each line, then perform a command each time it reads a line, using the inpu
How about:
while read line do echo $line // or some_function "$line" done < testfile.txt