1

Piping to two processes that both print to stdout

view story
linux-howto

https://bbs.archlinux.org – If the particular case is enough, and you know how the first line has to look like, you may grep both lines at once instead of using awk (maybe it is lighter)#ps -eal |grep 'F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD\|firefox' F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 1000 30464 676 5 80 0 - 156850 poll_s ? 00:02:16 firefox kokoko3k https://bbs.archlinux.org/profile.php?id=20651 2012-09-18T14:38:43Z (HowTos)