I'm trying to extract data from an xml file but without the codes. I've achieved it but i was wondering if there's a better way to do this.
sample data:
awk doesn't know anything about xml.
The [<>] is a character group, it will split on either < or >. The [><] would do just the same.
With GNU awk you can use a regular expression for delimiter.
If it was [0-9], it would split on any digit.
As far as I know, every major AWK implementation treats FS as a regular expression when it consists of more than one character (it's required by POSIX).