greycat 1591298400 learn \s and \d are PCRE features. They will not work in ERE (which is what awk, egrep, and bash's =~ all use). The ERE equivalent of \s is [[:space:]], and of \d is [[:digit:]].