I want to parse a web page in Groovy and extract all of the href links and the associated text with it.
If the page contained these links:
It seems that the good-old ENVIRON awk built-in hash is not mentioned at all. An example of its usage:
ENVIRON
$ X=Solaris awk 'BEGIN{print ENVIRON["X"], ENVIRON["TERM"]}' Solaris rxvt