Skip to main content

 

While grep and sed are commoly used, awk fills a valuable niche when processing structured text, avoiding multiple pipes or more complicated regex extractions. Here is a handy flowchart to pick the ideal tool for your text processing task:

aHR0cHM6Ly9taW5kbG9vdC5uZXQvcGFzdGUvd3AtY29udGVudC91cGxvYWRzLzIwMjAvMTEvVU5JWC10ZXh0LXRvb2xzLnBuZw==.png


A plaintext chart and a simple example making use of several awk features can be found here:

Which UNIX tool to use for text processing?