Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created May 9, 2016 20:19
Show Gist options
  • Save guyhughes/c1bf95f17fd9e227c57d7c31013b3dac to your computer and use it in GitHub Desktop.
Save guyhughes/c1bf95f17fd9e227c57d7c31013b3dac to your computer and use it in GitHub Desktop.
Check that every directory in $PATH exists
(IFS=:;for p in ${PATH}; do if [[ -d $p ]]; then echo "OK $p"; else echo "ERR $p"; fi; done; )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment