* Vinu Balaji <[EMAIL PROTECTED]> [050427 04:56]:
>
> #bash#export TEST=/usr/bin:/usr/local/bin
> #bash# TEST=${TEST/\/usr\/bin}
> #bash# echo $TEST
> :/usr/local/bin
> The other sed's were for removing the : in the start and the end, if
> they are found.
Well why not try,
TEST=${TEST/\/usr\/bin?(:)}
(untested)
Similar thing can be done for ":" at start too if needed.
Shantanu
p.s. I use ksh or pdksh
--
-------------------------------------------------------
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