Skip to content

Instantly share code, notes, and snippets.

@gmas
Created October 12, 2014 01:19
Show Gist options
  • Save gmas/b240be5cc59aced302c4 to your computer and use it in GitHub Desktop.
Save gmas/b240be5cc59aced302c4 to your computer and use it in GitHub Desktop.
parse tabular result
ipcs -mp | tr -s '[:alpha:]' - | tr -d - | tr -d '/'| tr -s " " | tr -d \t | cut -d" " -f 2 | tr -d ' ' | sort | uniq | while read x; do ps h -p $x; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment