Skip to content

Instantly share code, notes, and snippets.

@shanemcd
Created December 5, 2012 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shanemcd/4217247 to your computer and use it in GitHub Desktop.
Save shanemcd/4217247 to your computer and use it in GitHub Desktop.
Clean up $PATH - removes duplicate directories
echo "$PATH" | /usr/bin/awk -v RS=':' -v ORS=":" '!a[$1]++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment