In the case of this article, the Learning Linux Commands: awk title might be a little misleading. And that is because
awk is more than a command, it’s a programming language in its own right. You can write
awk scripts for complex operations or you can use
awk from the command line. The name stands for Aho, Weinberger and Kernighan (yes, Brian Kernighan), the authors of the language, which was started in 1977, hence it shares the same Unix spirit as the other classic *nix utilities.
If you’re getting used to C programming or know it already, you will see some familiar concepts in
awk, especially since the ‘k’ in awk stands for the same person as the ‘k’ in K&R, the C programming bible. You will need some command-line knowledge in Linux and possibly some scripting basics, but the last part is optional, as we will try to offer something for everybody. Many thanks to Arnold Robbins for all his work involved in
In this tutorial you will learn:
- What does
awk do? How does it work?
awk basic concepts
- Learn to use
awk through command line examples