bash: process each line as result of command using IFS=

Example processing output of grep

1
2
3
4
while read -r line ; do
    echo "Processing $line"
    # your code goes here
done < <(grep xyz abc.txt)

SOURCE: StackOverflow