Course Information
Course Overview
awk programming examples
awk is an incredibly powerful programming language. You can use it to replace sed, grep, cut, sort, uniq (and more) on the command line in most Unix-like operating systems.
awk, a programming language that can be used for text processing.
Awk is a scripting language, so it processes text one line at a time, and doesn’t rely on any underlying commands or libraries to do its work. It operates on text files that you pass to it.
The awk program is a data-mining tool. You can use it to extract particular columns, rows, or fields (known as "tokens") of information out of a file, in much the same way as you can select specific pieces of text out of a line
awk is a standard feature of Unix operating systems (any Linux system or Mac OS X). It is a powerful tool for extracting data from files and text streams, and for performing various kinds of text processing.
The course will teach you how to use the awk programming language. This course will provide a simple overview of the basics, but be aware that there are many more things that awk can do.
If you are a Linux user or a developer or sysadmin that wants to become more skilled, awk is a must known tool.
Course Content
- 1 section(s)
- 13 lecture(s)
- Section 1 Introduction
What You’ll Learn
- The AWK programming language
- data mining with awk
- text processing with awk
- make awk scripts
Skills covered in this course
Reviews
-
MMeag Lees
Free course, well laid out, quick pace
-
SSergey Ten
This is a concise and to the point course on Awk, but the contents could be greatly improved without adding too much to the course's runtime. In particular, there are no mentions of built-in functions, without which the power of Awk is limited. Also, there is a brief mentioning of the BEGIN/END blocks that were quickly dismissed as optional, but it'd be nice to reveal their purpose as they can have programming blocks associated with them - the body executes for each input line while the BEGIN/END blocks execute only once. Finally, there are some minor but annoying inaccuracies that can be cured with proper course editing - like the loop prints 9 lines but the narration says it prints 10, or the "variables" lecture where the "class" variable is assigned a constant value, but the narration says it's a column value from the input file. Hopefully the subsequent edition of this course will expand and make corrections, as the topic is valuable. Perhaps introduce a few real-life use cases and show how to solve them with Awk.
-
SStefan Popov
A nice, quick introduction to AWK, with all basic concepts. Thank you Frank!
-
AAbraham Ezequiel Chalave
An underrated programming language. I've been looking for ages a comprehensive tutorial like this.