I have defined a regular expression which matches a list of words separated by one or more spaces where one of the words is followed by an asterisk. For a list with only one word the expression doesn't match when I use mawk but it matches when I use gawk or nawk:
I have defined a regular expression which matches a list of words separated by one or more spaces where one of the words is followed by an asterisk. For a list with only one word the expression doesn't match when I use mawk but it matches when I use gawk or nawk:
If the word with the asterisk is followed by one or more words then the regular expression matches also when using mawk:
I use Debian 11 (stable) where mawk is the default implementation of AWK.