* Binand Sethumadhavan <[EMAIL PROTECTED]> [050427 00:50]:
> The "standard" solution is:
>
> PATH=$( echo $PATH | sed -e 's,/path/to/remove,,g' -e 's,^:,,' -e
> 's,:$,,' -e 's,::,:,g' ); export PATH
Here is another one. No need for sed and otherforks
Here is another one. No need for sed and other forks.
export PATH=${PATH:/path/to/remove:/}
Ofcourse proper escaping needs to be done but might save you some CPU ;)
Shantanu
-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help