
July 30th, 2005, 10:03 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 23
Time spent in forums: 8 h 31 m 47 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by Sums75 I need a help.
I have an xml file that unix is taking as one single line, the complete xml file.
I need to pick a certain value from this file for furthur processing.
How do i do it using sed or any other utility.
I want the value between <ID> and </ID> . Please help. Also This combination occurs multiple times in the file, I just need the first occurance. |
sed -n '/<ID>/,/<\/ID/p'
will print the section
"I just need the first occurance" .... dont remember 
|