![]() |
|
|
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 |
| Advanced I/O | thangappan | UNIX for Advanced & Expert Users | 1 | 04-23-2008 12:10 AM |
| Advanced Grep Usage | jadionne | UNIX for Dummies Questions & Answers | 5 | 11-21-2007 08:42 PM |
| Advanced replace | fed.linuxgossip | Shell Programming and Scripting | 10 | 08-22-2007 12:49 PM |
| Advanced LS? | bostonrobot | UNIX for Dummies Questions & Answers | 2 | 06-10-2007 04:44 PM |
| Advanced Getopts | stefan_hery | Shell Programming and Scripting | 2 | 05-08-2005 10:16 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Advanced grep and sed
I am wondering if there is a way via grep and sed to extract a string that is on the 2nd line below a known marker as in this example:
TextRel 203 0 0 "WELL:" SetPosAbs 1287 -6676 TextRel 210 0 0 "AEP #2" The marker is WELL:, but the string I need is "AEP #2". Can grep/sed handle this or is some sort of read command required? Thanks, Paul H. Denver |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|