In awk, regular expressions (regex) allow for dynamic and complex pattern definitions. You’re not limited to searching for simple strings but also patterns within patterns.The syntax for using regular expressions to match lines in awk is:word ~ /match/The inverse of that is not matching a pattern:read more
Source: LXer – How to use regular expressions in awk