Could you please tell me how can I print lines that matches a regex from a file?
In the topic:
Extract string matching regex from string
I only see how to print exact match, and when I use it to a file:
./xidel -e 'analyze-string(unparsed-text-lines("repl.k"), "uniq")//fn:match/text()
‘
I also see exact matches and when I remove //fn:match/text() It dumps all the file.
BTW: unparsed-text-lines probably stores all the lines in memory.
What should I do so the file could be read one line at a time?
Could you please advice? Thank you