Clean up $PATH (removes duplicated dirs)
echo "$PATH" | /usr/bin/awk -v RS=':' -v ORS=":" '!a[$1]++'
Written by Shane McDonald
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Related Tags
#shell
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#