![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| logical OR in sed | anchal_khare | Shell Programming and Scripting | 8 | 02-08-2008 03:38 AM |
| logical if condition | nano2 | Shell Programming and Scripting | 7 | 06-27-2007 12:24 PM |
| Did not know about logical volumes | gezi | News, Links, Events and Announcements | 2 | 04-27-2005 11:10 AM |
| AIC logical volumes | 98_1LE | UNIX for Dummies Questions & Answers | 1 | 09-14-2002 10:33 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Logical OR using sed
Hello,
This must be a novice question to you folks. But I searched through various places and did not find an answer to this question: How do we perform a logical OR operation using sed command? For example, I want to write a command that extracts all the text between pattern1 and pattern2 OR pattern3. I tried using the below command, and it didn't work: sed -n '/pattern1,pattern2|pattern3/'p <file_name> Please advice me in case any of you have a solution. Thanks, Thejasvi V |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|