![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
It works for me if you don't escape the bracket, e.g.
/system)/,/\;\;/{ . . . Cheers ZB |
|
#3
|
||||
|
||||
|
Yes! Thanks for the help. I had a feeling it was something small like that. Thanks again.
|
||||
| Google The UNIX and Linux Forums |