Created
October 12, 2014 01:19
-
-
Save gmas/b240be5cc59aced302c4 to your computer and use it in GitHub Desktop.
parse tabular result
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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