Skip to content

Instantly share code, notes, and snippets.

@hightemp
Created April 22, 2014 16:16
Show Gist options
  • Save hightemp/11185204 to your computer and use it in GitHub Desktop.
Save hightemp/11185204 to your computer and use it in GitHub Desktop.
Remove PATH duplicates
PATH=$(echo "$PATH" | 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