Skip to content

Instantly share code, notes, and snippets.

@craig-m
Created November 22, 2015 10:43
Show Gist options
  • Save craig-m/4783e78f9c281da2cc85 to your computer and use it in GitHub Desktop.
Save craig-m/4783e78f9c281da2cc85 to your computer and use it in GitHub Desktop.
List shells without a tty
ps -ef | awk '$6=="?"&&$8~/^(\/bin\/)?(ba|da|z|k|c|tc)*sh-?/{print}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment