The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 and shell scripting languages 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 03:18 AM
Can I spread commands over multiple lines? tphyahoo UNIX for Dummies Questions & Answers 1 06-07-2006 09:08 AM
multiple sed commands george_ Shell Programming and Scripting 5 03-30-2006 10:35 AM
Multiple IP Address GEIER AIX 1 10-03-2005 08:56 AM
Multiple commands TAB delimited cdunavent Shell Programming and Scripting 2 05-09-2005 09:48 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 08-11-2004
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
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
  #3 (permalink)  
Old 08-11-2004
google's Avatar
google google is offline Forum Advisor  
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.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0