Build AWK one-liners visually and test them against sample input right in your browser.
Each rule has an optional pattern (condition) and an action (code block). Leave the pattern empty to match all lines.
$0Entire line$1, $2, ...Fields by positionNRCurrent line numberNFNumber of fieldsFSField separatorOFSOutput field separatorRSRecord separatorlength($0)String lengthsubstr(s,i,n)Substringsplit(s,a,fs)Split string into arraygsub(r,s)Global substitutionmatch(s,r)Regex matchtolower(s)Lowercasetoupper(s)Uppercaseprintf fmt, ...Formatted output/regex/Pattern match