![]() |
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 |
| grep patterns - File | dhanamurthy | Shell Programming and Scripting | 1 | 05-08-2008 10:24 PM |
| how to grep for lines between 2 give patterns? | melanie_pfefer | Shell Programming and Scripting | 1 | 04-03-2008 11:38 AM |
| Grep for Multiple patterns | WillImm123 | Shell Programming and Scripting | 7 | 03-01-2006 04:23 PM |
| Grep multiple patterns | malaymaru | Shell Programming and Scripting | 4 | 09-25-2005 01:20 AM |
| grep for multiple patterns | tselvanin | UNIX for Dummies Questions & Answers | 1 | 11-12-2003 07:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Selecting patterns from the results of grep
Hi All,
I'm struggling with a problem that I'm wondering (and hoping!) that someone can help me with. I have a number of .xml files which I'm using grep to search for the string 'include'. I need to extract the value of the include from the grep result. For example, on any given file, I use 'grep -i include=' which returns: <li include="NX">threadpool environment..... In this example, I need to strip out the 'NX'. Ultimately, I need anything that is present between "" and follows 'include='. These patterns can occur anywhere in the file. Unfortunately, my limited knowledge of sed and awk is proving insufficient to progress. Thanks in Advance. |
|
||||
|
A beautifully elegant solution that, more importantly, works
![]() Many thanks Yogesh. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| perl, xml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|