Issue
I have text coming out from grep cmd:
<version>abc</version>
What would be right regex to filter out version tags?
grep version\> | grep **regex**
Solution
This awk
may do:
echo "<version>abc</version>" | awk -F"[<>]" '{print $3}'
abc
Setting field separator to <
and >
, then print third field.
Answered By - Jotne