Re: Grep RE for extracting XML attribute value



hemant.gaur@xxxxxxxxx wrote:

egrep "([ ]+|[^|]+)test([ ]*|[^|])=" my.xml does the test attribute
extraction.

This extracts *the whole line* where the test attribute is present, which is
not exactly what you asked in the first place (at least as I understood
it).

.