I know this question has been asked in the context of perl and grep, but I'm wondering if this is possible using TCL.
Currently I'm using the scanmatch command to find a particular regex in a text file. I see that the array element matchInfo(linenum) provides the line number of the matched line. Given this line number as an index, I want to extract contents of subsequence lines.
I'm wondering if there is a function that allows line contents to be extracted by line number.
For reference, I am following this page http://www.ucolick.org/~de/book/scan.html
Thanks!