Skip to content

Instantly share code, notes, and snippets.

@davetrux
Created September 4, 2014 13:53
Show Gist options
  • Save davetrux/5aa71cf7abed70fa728c to your computer and use it in GitHub Desktop.
Save davetrux/5aa71cf7abed70fa728c to your computer and use it in GitHub Desktop.
#!/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