Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Created July 6, 2011 14:51
Show Gist options
  • Save DAddYE/1067414 to your computer and use it in GitHub Desktop.
Save DAddYE/1067414 to your computer and use it in GitHub Desktop.
PS with same output on darwin and unix
# There is a better way to separate output with \t?
ps axo pid,rss,pcpu,command | grep -vE "^USER|grep" | awk '{print $1"\t"$2"\t"$3"\t"$4" "$5" "$6}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment