Earlier quoted context omitted.
I'm not exactly sure what semantics you intend, it seems like you might be able to spell this { foo; baz; } | grep bar | sort -rn | tail or, in bash only: cat This is assuming you didn't intend interleaving, for which the second syntax would work but you'd need something other than cat.
the EDIT: Unless you're just piping both of them to STDIN. piping two files to STDIN is useful, just not as useful as the thing that I wanted. This seems to be what you're doing.
$ echo
So yeah, should be what you want for that use case :)As I mentioned though, it's a bashism.