SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using Bash, you can also do the following if, let's say, you want to remove the directory /home/wrong/dir/ from your PATH variable:
/home/wrong/dir/
PATH
PATH=`echo $PATH | sed -e 's/:\/home\/wrong\/dir\/$//'`