When you need to loop over a bunch of files and a pipe isn't feasible
then a for loop on the command line is useful.
for VAR in LIST_OF_WORDS ;do cmd1; cmd2; cmd3 etc ;donekeywords: for in do done Semicolons needed unless newline:
for VAR in LIST_OF_WORDS do cmd1 cmd2 cmd3 donefor i in hello there world ;do echo $i ;done
for i in * do echo -e "$i : \c" head -1 $i donefor i in /bin/* ;do file $i | grep -v ELF | grep -v symbolic ;done