echo "30 29 27 26 23" | mawk '{gsub ("^[^ ]+ ", ""); print $0}' leads to print "23" instead of "29 27 26 23" According to the man the leading "^" matches the front of a string, but it seems to be ignored.
This works OK with gawk.
echo "30 29 27 26 23" | mawk '{gsub ("^[^ ]+ ", ""); print $0}'
leads to print "23" instead of "29 27 26 23"
According to the man the leading "^" matches the front of a string, but it seems to be ignored.
This works OK with gawk.