![]() |
|
|
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 |
| Parse String Using Sed | racbern | Shell Programming and Scripting | 4 | 04-23-2008 01:14 PM |
| Parse String from a Variable | racbern | Shell Programming and Scripting | 3 | 04-07-2008 01:04 PM |
| how to parse this string | hcliff | Shell Programming and Scripting | 13 | 04-02-2008 05:43 AM |
| Parse a string in XML file using shell script | ayhanne | Shell Programming and Scripting | 46 | 01-09-2008 12:33 PM |
| Search and Parse string from inside a File | SSims | UNIX for Dummies Questions & Answers | 2 | 11-08-2007 03:50 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hello All,
I am new to this and I need to parse an XML file. Here's the XML Input File: <Report version="1.2"> <summary fatals="0" testcases="1" expected_fails="0" unexpected_passes="0" warnings="9" tests="21" errors="0" fails="1" passes="20" /> <testresult line="../shared/scripts/addElement.js:573" message="Add Network Element [ Tampines ] successfully created" result="PASS" time="2007-12-13T16:23:47" /> </Report version> The expected output should be: Report summary fatals=0 testcases=1 expected_fails=0 unexpected_passes=0 warnings=9 tests=21 errors=0 fails=1 passes=20 Add Network Element [ Tampines ] successfully created -- PASS Can you help me with the script to have the output? Thanks in advance. racbern |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|