String manipulation
Hello,
I'm looking for a linux command to extract specific strings from an xml documents. For example, the following string: <name>John Doe</name> I have tried "grep", but this produces the entire line of text which is too much to handle or to focus on. I will appreciate any possible help! Thanks! Manuel Alvarado:Pengy: |
Have a look at sed and awk.
Perl, Python or Ruby would be suitable as well if you know them. Your life would likely be much easier if you picked a scripting language and used one of the many XML libraries available... |
Hi.
Quote:
Code:
-o, --only-matching |
All times are GMT -5. The time now is 07:09 PM. |