Pro tip, if a line ends in a | you don't need a trailing backslash. The same is true if a line ends in || or && as those all imply continuation.
Edit:
cat file |
program1 |
program2 |
...