Skip to content

Instantly share code, notes, and snippets.

@shanemcd
Created December 5, 2012 16:41
Show Gist options
  • Select an option

  • Save shanemcd/4217247 to your computer and use it in GitHub Desktop.

Select an option

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