AWK is a text processing language for scanning files, selecting lines that match patterns, and performing actions on those lines.
awk 'pattern { action }' filecommand | awk 'pattern { action }'-F option or FS variable$1 first field$5 fifth field$0 entire input lineprint arg1 arg2 — print arguments to stdoutprint arg1, arg2 — print with separator (OFS, default space)printf "format", arg1, arg2 — print with formattinggsub(/ere/, replace, input) — global substitution in input; returns substitution counttolower(str) — convert to lowercasetoupper(str) — convert to uppercasesubstr(str, start, len) — substring