Skip to content

Instantly share code, notes, and snippets.

@HokieGeek
Created June 2, 2015 12:40
Show Gist options
  • Save HokieGeek/c23860bac515b1f8c745 to your computer and use it in GitHub Desktop.
Save HokieGeek/c23860bac515b1f8c745 to your computer and use it in GitHub Desktop.
Use this check all the time in scripts at work. Wondering if I can do it better...
ps -p $$ | awk 'END{ print $NF }' | egrep -q 't?csh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment