The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to execute multiple commands via ssh srage Shell Programming and Scripting 9 01-05-2008 12:18 AM
Can I spread commands over multiple lines? tphyahoo UNIX for Dummies Questions & Answers 1 06-07-2006 06:08 AM
multiple sed commands george_ Shell Programming and Scripting 5 03-30-2006 07:35 AM
Multiple IP Address GEIER AIX 1 10-03-2005 05:56 AM
Multiple commands TAB delimited cdunavent Shell Programming and Scripting 2 05-09-2005 06:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2004
google's Avatar
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
Reply With Quote
Forum Sponsor
  #2  
Old 08-11-2004
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
It works for me if you don't escape the bracket, e.g.

/system)/,/\;\;/{
.
.
.


Cheers
ZB
Reply With Quote
  #3  
Old 08-11-2004
google's Avatar
Moderator
 

Join Date: Jul 2002
Location: Atlanta
Posts: 740
Yes! Thanks for the help. I had a feeling it was something small like that. Thanks again.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0