Last Updated: February 25, 2016
·
403
· lokiastari

Remove item from path (quickly)

If I wanted to remove all paths with SDE in the directory from my path:

export PATH=`echo ${PATH} | awk -v RS=: -v ORS=: '/SDE/ {next} {print}'`