The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 08-11-2004
google's Avatar
google google is offline Forum Advisor  
Moderator
  
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
sed: Multiple Commands applied to an address

Trying to write a sed command that applies multiple replacements to a specific address. Need a second pair of eyes I guess cause my syntax appears to be correct (obviously not though) I am getting an error. Any Help would be appreciated! Thanks in advance.

sed -f foo envOracle
sed: Function /system\)/,/\;\;/{ cannot be parsed.

File called foo -
1 /system\)/,/\;\;/{
2 s/ORA_UID=userid/ORA_UID=newuserid/
3 s/ORA_PW=pass/ORA_PW=newpass/
4 }
5