I am ashamed to ask such a basic question, but it seems I have a major flaw in my understanding of pipes. I read this:
Do 'cat foo.txt | my_cmd' and 'my_