GNU AWK
$10.00
Minimum price
$10.00
Suggested price

GNU AWK

awesome one-liners

About the Book

This book heavily leans on examples to present options and features of awk as well as regular expressions one by one. It is recommended that you manually type each example and experiment with them. Understanding both the nature of sample input string and the output produced is essential.

You should have prior experience working with command line and bash shell, should know concepts like file redirection, command pipeline and so on. You should also be familiar with programming concepts like variables, printing, functions, control structures, arrays, etc. Knowing basics of grep and sed will help in understanding similar features of awk.

Exercises are also included to test your understanding.

Visit https://github.com/learnbyexample/learn_gnuawk for code snippets and example files used in this book. The repo also has solutions for exercises.

About the Author

Sundeep Agarwal
Sundeep Agarwal

Sundeep Agarwal is a freelance trainer, author and mentor. His previous experience includes working as a Design Engineer at Analog Devices for more than 5 years. You can find his other works, primarily focused on Linux command line, text processing, scripting languages and curated lists, at https://github.com/learnbyexample. He has also been a technical reviewer for Command Line Fundamentals book and video course published by Packt.

Bundles that include this book

$46.00
Suggested Price
$15.00
Bundle Price
$46.00
Suggested Price
$12.00
Bundle Price

Table of Contents

1. Preface

2. Installation and Documentation

3. awk introduction

4. Regular Expressions

5. Field separators

6. Record separators

7. In-place file editing

8. Using shell variables

9. Control Structures

10. Built-in functions

11. Multiple file input

12. Processing multiple records

13. Two file processing

14. Dealing with duplicates

15. awk scripts

16. Gotchas and Tips

17. Further Reading

Authors have earned$9,661,401writing, publishing and selling on Leanpub, earning 80% royalties while saving up to 25 million pounds of CO2 and up to 46,000 trees.

Learn more about writing on Leanpub

The Leanpub 45-day 100% Happiness Guarantee

Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses! Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks. Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. It really is that easy.

Learn more about writing on Leanpub