I'm trying to run three separate processed while reading foo.txt
Here is the example:
cat foo.txt | while read line
do
echo line1
echo line2
echo line3
echo ""
done
The expected output is:
line1
line2
line3
line4
line5
line6
line7
line8
and continues like this. This is just an example. I want to execute some other commands…