How to stop `grep` from truncating pipe output

view story

http://unix.stackexchange.com – Is there any way to have an echo at the end of a pipe simply append to the current output rather than removing it all? For example, how can I keep the output for my cat and grep and add "END OF OUTPUT" to the end of the output from the same pipe: $ cat file.txt | grep 'foo' | echo "END OF OUTPUT" something foo foo foo something END OF OUTPUT Similar to how cat - works: echo "START OF OUTPUT" | cat - file.txt (HowTos)