AP DS TECH bash: process each line as result of command using IFS= ~~ December 20, 2019 Example processing output of grep 1234while read -r line ; do echo "Processing $line" # your code goes here done < <(grep xyz abc.txt) SOURCE: StackOverflow