Consider the following example file test.xml
<header>
<tag1>1</tag1>
<system>test123</system>
<cdc>230</cdc>
</header>
grep -E -m 1 -o "
This will return "
if you want only the value we need to pipe it further
grep -E -m 1 -o "
This will return "test123"
No comments:
Post a Comment