Awk is the ubiquitous Unix command for scanning and processing text containing predictable patterns. However, because it features functions, it’s also justifiably called a programming language.read more
Source: LXer – Awk one-liners and scripts to help you sort text files