Created
September 4, 2014 13:53
-
-
Save davetrux/5aa71cf7abed70fa728c to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/tcsh | |
set cmd = 'ps axo pid,ppid,user,command' | |
if ("$1" == "") then | |
$cmd | |
else | |
$cmd | grep "$1" | grep -v "grep $1" | grep -v "bin/psc" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment