See inline... > [shridhar@daithan shridhar]$ export ORACLE_HOME=d:\\oracle\\oracle9 > [shridhar@daithan shridhar]$ echo $ORACLE_HOME > d:\oracle\oracle9 > [shridhar@daithan shridhar]$ echo $ORACLE_HOME| sed s/'\\'/'\\\\'/g
You need not use ''. This: sed 's/\\/\\\\/g' suffices. > d:\\oracle\\oracle9 > [shridhar@daithan shridhar]$ t=`echo $ORACLE_HOME| sed > s/'\\'/'\\\\'/g` > sed: -e expression #1, char 8: Unterminated `s' command Instead of ``, using $() did the trick. Don't remember why this is so, something to do with ` and ' (bash manual has all the info on it). Cheers, --amar -- Amarendra A. Godbole / Microsoft ``Services For UNIX'' / These opinions are _MINE_. If anything can go wrong, _FIX_ it. (To hell with MURPHY) _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
