![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| transforming a multiline record to single line | anju | Shell Programming and Scripting | 9 | 01-14-2008 07:55 AM |
| handling Multiline SQL outputs | decci_7 | Shell Programming and Scripting | 5 | 01-08-2008 07:29 PM |
| Awk Compare Files w/Multiline Records | RacerX | Shell Programming and Scripting | 4 | 12-21-2007 06:05 AM |
| how to exclude the GREP command from GREP | yamsin789 | UNIX for Advanced & Expert Users | 2 | 10-05-2007 03:59 AM |
| Make grep -c display like grep -n? | Jerrad | Shell Programming and Scripting | 2 | 08-25-2006 01:20 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Multiline Grep
How does one do a search for a multiline regular experssion and output the results to a file. I know this won't work since grep only searches single lines: Code:
egrep '<a>.*?</a>' source.xml > output.xml Here are some sample patterns I'd like to match and output to a single file: Code:
<a>..............</a> <a> .................. </a> <a> .................. .................. .................. </a> Do I need perl for this? Many Thanks! -Mark |
| Bookmarks |
| Tags |
| perl, perl shift, regex, regular expressions, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|