![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| extract strings between tags | userscript | Shell Programming and Scripting | 10 | 08-07-2009 12:21 AM |
| extract text between two strings exclusive | the1armedcoder | UNIX for Dummies Questions & Answers | 3 | 04-22-2009 02:29 PM |
| using awk to extract text between two constant strings | mjoshi | Shell Programming and Scripting | 11 | 03-31-2009 10:37 AM |
| how to extract multiple strings from a line | vin_eme | Shell Programming and Scripting | 3 | 01-22-2009 01:46 PM |
| using AWK how to extract text between two same strings | santosh1234 | Shell Programming and Scripting | 2 | 12-23-2008 05:37 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Sample data:
Code:
revision001 | some text | some text
Comment: some comment
Brief: 1) brief
2) brief
------------------------------------------
revision002 | some text | some text
Brief: 1) brief
2) brief
FIX: some fix
------------------------------------------
revision003 | some text | some text
Comment: some comment
need output: Code:
revision001
Brief: 1) brief
2) brief
revision002
Brief: 1) brief
2) brief
<command> | perl -ne 'print if (/^Brief: /../(?:.*: )|(?:\-+)/ or /^revision[0-9]* /)' Last edited by inotech; 10-01-2009 at 06:06 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|