October 2024
Beginner to intermediate
698 pages
16h 7m
English
In this chapter, we’ll continue the discussion about awk, but from a different perspective. In the previous chapter, I showed you the basics of creating one-line awk commands that you can use in your normal shell scripts. In this chapter, I’ll show you a bit about how to write awk scripts in the awk language. Topics in this chapter include:
awk script constructionwhile construct and setting variablesprintfIf you’re ready, let’s dig in.
You can use either a Fedora or Debian virtual machine for this. And, as always, you can grab the scripts by doing:
git clone https://github.com/PacktPublishing/The-Ultimate-Linux-Shell-Scripting-Guide.git ...Read now
Unlock full access