User Tools

Site Tools


The AWK language

AWK is a programming language that is designed for processing text files or strings. Developed by Alfred Aho, Peter Weinberger, and Brian Kernighan in the 1970s, it is still one of the fastest ways to process a text file, computing mathematical operation and string manipulation.
In this part of the wiki-training site we provide different sections showing the most important feature of the awk language.
Practically speaking awk is used in substitution of M. Excel and M. Access. In practice awk is used to “reduce” and “squeeze” the data (text data - tables) before importing it to R. Because it has

  • no file size limitations
  • no row and columns limitations.

In the study cases the awk will be used several times so it should help you understand it very well!
You can access the manual page by:

man awk

AWK Tutorials

AWK exercises

These exercises use the scripts and data stored in ~/ost4sem/exercise/basicadvawk

You can open the script by kate and copy/paste the lines to the terminal.

You can can also interact with the shell using other commands and inserting comments in the editor.
You can run it directly by:

wiki/awk.txt · Last modified: 2021/01/20 20:36 (external edit)