Hi all

Can anybody point out why this does not work?

[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
d:\\oracle\\oracle9
[shridhar@daithan shridhar]$ t=`echo $ORACLE_HOME| sed s/'\\'/'\\\\'/g`
sed: -e expression #1, char 8: Unterminated `s' command
[shridhar@daithan shridhar]$

I was under impression that if a shell command prints something on console, 
it can b put in `` and assigned to a shell variable. But in this case I had 
to put that output in a file and assign `cat file` to the variable. Certainly 
not the best solution..

I tried this under mksNT and bash. Same result..

 Shridhar

_______________________________________________________________

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

Reply via email to