![]() |
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 |
| extracting numbers from strings | gobi | Shell Programming and Scripting | 2 | 05-27-2008 12:44 AM |
| Extracting the lines between 2 strings of a file | babloo | Shell Programming and Scripting | 2 | 02-14-2007 11:27 AM |
| Help with extracting strings from a file | cmsdelhi | Shell Programming and Scripting | 7 | 01-12-2007 09:49 AM |
| Search file for pattern and grab some lines before pattern | frustrated1 | Shell Programming and Scripting | 2 | 12-22-2005 03:41 PM |
| Extracting strings | hugow | UNIX for Dummies Questions & Answers | 1 | 06-24-2005 07:09 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Extracting lines between 2 strings only if the pattern patches
Hi Friends,
Please help me with the following problem: I have an xml file with the following lines: Code:
<init-param>
<param-name>/default/directory</param-name>
<param-value>default</param-value>
</init-param>
<init-param>
<param-name>/default/logoutpage</param-name>
<param-value>www.test.com</param-value>
</init-param>
<init-param>
<param-name>/default/changepassworddate</param-name>
<param-value>60</param-value>
</init-param>
<init-param>
<param-name>/default/itemsperpage</param-name>
<param-value>10</param-value>
</init-param>
<init-param>
<param-name>/default/title</param-name>
<param-value>xxxx</param-value>
</init-param>
<init-param>
<param-name>/default/autopopulate</param-name>
<param-value>yes</param-value>
</init-param>
Code:
<init-param> <param-name>/default/directory</param-name> <param-value>default</param-value> </init-param> Thanks, Simmy Last edited by Yogesh Sawant; 04-22-2008 at 02:18 AM.. Reason: added code tags |
| Bookmarks |
| Tags |
| perl, perl script, perl shift, regex, shift, shift perl, unix commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|