I am doing some file IO with c code. I have a particular pattern in my file. I can verify this by a shell command cat abc.txt | grep abc | wc -l. When I execute
cat abc.txt | grep abc | wc -l
What grep and wc are doing are reading the STDIN file handle as part of the pipe | operator.