what is the value of the following awk expression :—
/(a|b).*z$/
• string
• number
• extended regular expression (e·r·e)
@Lady annoying indeed, i would not have guessed that was a number.
but it does give me a good excuse to tell my favorite awk story. Back around the time i met my partner D, i was working on a project translating/rewriting a large codebase from MAINSAIL to C, and had written a bunch of awk code to semi-automate some of it. At one point i left a bunch of printouts at D's place and she mentioned to me "oh you left your awk code here" ... since she's not a programmer type, I was impressed that she recognized awk.
Years later I met Brian Kernighan at a workshop, and when were chatting over coffee, so I told him the story, and flamboyantly ended it with "and that's when I knew she was the one!" In response ... he looked it me like I had two heads and said something like "that's nice." How embarrassing.
this is not a poll because the answer is number