My program read in and loop through a column in a text file that contains pids. kill -9 kills all the pids in the column. The program errors and do not kill the pids in the column of foo4.txt .
while read $f1; do
kill -9 $f1
done < "/path/foo4"
The foo.txt: Contents in the foo4.txt is as follows: