SyntaxFix
Write A Post
Hire A Developer
Questions
Try to change the loop like this:
for line in $(cat filename); do read input echo $input; done
Unit test:
for line in $(cat /etc/passwd); do read input echo $input; echo "[$line]" done