>
> $ p=${PATH/\/usr\/lib\/courier-imap\/bin:/}
> $ echo $p
> /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/shantanu/bin
>
#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.
-------------------------------------------------------
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?id5hix
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help