Bash loopsSafer internet sessions for kids Chris Collins 2020-04-30 about 47 words 1 min Bash for loops and while loops 1 2 3 for i in $(cat filename ); do echo "$i" ; done However, if file ‘filename’ contains lines with spaces then need to use while read 1 2 3 while read i; do echo $i ; done < RPMrequiresA