Tips for golfing in AWK GNU AWK manual Tips Use END instead of BEGIN for holes without input The ~ and !~ operators check if a string matches a regex Set the IGNORECASE variable to enable case insensitive string comparisons Use the predefined variables Bitwise operators are available as functions: and(), or(), …