I know about
program1 | program2
and
program1 | tee outputfile | program2
but is there a way to feed prog
use (;) syntax... try ps aux | (head -n 1; tail -n 1)
(;)
ps aux | (head -n 1; tail -n 1)