Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 13th, 2012  |  syntax: None  |  size: 0.42 KB  |  views: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. $ zsh -c "ps aux | tee >(grep syslog) | awk 'NR == 1'"
  2. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  3. root       954  0.0  0.0  30180   476 ?        Ssl  Sep01   0:02 /sbin/rsyslogd -n -c 5
  4. k         5479  0.0  0.0   4624   784 pts/0    S+   16:32   0:00 grep syslog
  5. $ bash -c "ps aux | tee >(grep syslog) | awk 'NR == 1'"
  6. USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
  7. $
clone this paste RAW Paste Data