![]() |
|
|
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 |
| GREP and Retrieve Line by Line | maxmave | Shell Programming and Scripting | 2 | 06-03-2008 12:45 PM |
| grep a string from 2 text files | karthikn7974 | Shell Programming and Scripting | 15 | 04-24-2008 04:15 AM |
| getting particular text after grep from lookup file | napolayan | UNIX for Dummies Questions & Answers | 10 | 10-20-2006 11:52 AM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 03:50 PM |
| grep'ing for text within a bunch of files...? | kitykity | UNIX for Dummies Questions & Answers | 1 | 09-19-2000 09:50 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
retrieve text after grep
I am trying to search for a pattern in a file containing xml - When I match the search I want to retrieve all the text within the xml brackets..
Whats the best way to read in data between xml tags in a shell script? ie.. xml returned which I have in a file now is something like below: <total> <mainacc>5500</mainacc> <BalAccs> <BalAcc> <AccId>1</AccId> <Value>0</Value> </BalAcc> <BalAcc> <AccId>2</AccId> <Value>0</Value> </BalAcc> </BalAccs> </total> I need to find the section for mainacc and store that but also in the Balaccs section I need to find the information for the value fields in Accid 1 and 2 but also know that the value belongs to accid1 and accid2 ... Any help?? I have never parsed xml before and not sure where to start .. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|