To process every line from output of grep
grep xyz abc.txt | while read -r line ; do
echo "Processing $line"
# your code goes here
done