Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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