Closed jpalus closed 2 years ago
- Replace this single regex with
/[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*/
so it's compatible with allawk
implementations (preferably)
I'm okay with this approach. Can you open a pull request?
It appears that interval expressions (
{<n>,<m>}
as in/[a-f0-9]{7,}/
) in AWK's regular expressions are somewhat fuzzy subject. Newer versions ofgawk
support it by default, older versions ofgawk
require additional option,mawk
does not support them. Also see: https://www.gnu.org/software/gawk/manual/html_node/Interval-Expressions.htmlIn my system
awk
points tomawk
hence hashes do not work. Would it be possible to either:/[a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9][a-f0-9]*/
so it's compatible with allawk
implementations (preferably)gawk
command instead ofawk
and requiregawk >= 4.0