• Complain

Sundeep Agarwal - GNU AWK

Here you can read online Sundeep Agarwal - GNU AWK full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover

GNU AWK: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "GNU AWK" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Sundeep Agarwal: author's other books


Who wrote GNU AWK? Find out the surname, the name of the author of the book and a list of all author's works by series.

GNU AWK — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "GNU AWK" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
GNU AWK
GNU AWK

Sundeep Agarwal

Preface

When it comes to command line text processing, from an abstract point of view, there are three major pillars grep for filtering, sed for substitution and awk for field processing. These tools have some overlapping features too, for example, all three of them have extensive filtering capabilities.

Unlike grep and sed, awk is a full blown programming language. However, this book intends to showcase awk one-liners that can be composed from the command line instead of writing a program file.

This book heavily leans on examples to present options and features of awk 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. As an analogy, consider learning to drive a bike or a car no matter how much you read about them or listen to explanations, you need to practice a lot and infer your own conclusions. Should you feel that copy-paste is ideal for you, code snippets are available chapter wise on GitHub.

Prerequisites
  • Prior experience working with command line and bash shell, should know concepts like file redirection, command pipeline and so on
  • Familiarity 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

If you are new to the world of command line, check out my curated resources on Linux CLI and Shell scripting before starting this book.

My Command Line Text Processing repository includes a chapter on GNU awk which has been edited and restructured to create this book.

Conventions
  • The examples presented here have been tested on GNU bash shell with GNU awk 5.1.0 and includes features not available in earlier versions.
  • Code snippets shown are copy pasted from bash shell and modified for presentation purposes. Some commands are preceded by comments to provide context and explanations. Blank lines have been added to improve readability, only real time is shown for speed comparisons, output is skipped for commands like wget and so on.
  • Unless otherwise noted, all examples and explanations are meant for ASCII characters.
  • awk would mean GNU awk, grep would mean GNU grep and so on unless otherwise specified.
  • External links are provided for further reading throughout the book. Not necessary to immediately visit them. They have been chosen with care and would help, especially during re-reads.
  • The learn_gnuawk repo has all the code snippets and files used in examples, exercises and other details related to the book. If you are not familiar with git command, click the Code button on the webpage to get the files.
Acknowledgements
  • GNU awk documentation manual and examples
  • stackoverflow and unix.stackexchange for getting answers to pertinent questions on bash, awk and other commands
  • tex.stackexchange for help on pandoc and tex related questions
  • LibreOffice Draw cover image
  • pngquant and svgcleaner for optimizing images
  • softwareengineering.stackexchange and skolakoda for programming quotes
  • Warning and Info icons by Amada44 under public domain
  • arifmahmudrana for spotting an ambiguous explanation

Special thanks to all my friends and online acquaintances for their help, support and encouragement, especially during these difficult times.

Feedback and Errata

I would highly appreciate if you'd let me know how you felt about this book, it would help to improve this book as well as my future attempts. Also, please do let me know if you spot any error or typo.

Issue Manager: https://github.com/learnbyexample/learn_gnuawk/issues

E-mail:

Twitter: https://twitter.com/learn_byexample

Author info

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.

List of books: https://learnbyexample.github.io/books/

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Code snippets are available under MIT License

Resources mentioned in Acknowledgements section are available under original licenses.

Book version

1.3

See Version_changes.md to track changes across book versions.

Installation and Documentation

The command name awk is derived from its developers Alfred V. Aho, Peter J. Weinberger, and Brian W. Kernighan. Over the years, it has been adapted and modified by various other developers. See gawk manual: History for more details. This chapter will show how to install or upgrade awk followed by details related to documentation.

Installation

If you are on a Unix like system, you are most likely to already have some version of awk installed. This book is primarily for GNU awk. As there are syntax and feature differences between various implementations, please make sure to follow along with what is presented here. GNU awk is part of text creation and manipulation commands provided by GNU. To install newer or particular version, visit gnu: software gawk. Check release notes for an overview of changes between versions.

GNU Awk 5.1.0, API: 3.0

Picture 1 See also gawk manual: Installation for advanced options and instructions to install awk on other platforms.

Documentation

It is always a good idea to know where to find the documentation. From command line, you can use man awk for a short manual and info awk for full documentation. The online GNU awk manual has a better reading interface and provides the most complete documentation, examples and information about other awk versions, POSIX standard, etc.

Here's a snippet from man awk:

Kernighan' s awk and numerous GNU-specific extensions.
Options overview

For a quick overview of all the available options, use awk --help from the command line.

-V --version
awk introduction

This chapter will give an overview of awk syntax and some examples to show what kind of problems you could solve using awk. These features will be covered in depth in later chapters, but don't go skipping this chapter.

Filtering

awk provides filtering capabilities like those supported by grep and sed plus some nifty features of its own. And similar to many command line utilities, awk can accept input from both

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «GNU AWK»

Look at similar books to GNU AWK. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Sundeep Misra - Forgive Me Amma
Forgive Me Amma
Sundeep Misra
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
Sundeep Agarwal - Eagle Luck
Eagle Luck
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
No cover
No cover
Sundeep Agarwal
Reviews about «GNU AWK»

Discussion, reviews of the book GNU AWK and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.