Limit search to available items
364 results found. sorted by date .
Book Cover
E-book
Author Kalkhanda, Shiwang

Title Learning AWK Programming : a fast, and simple cutting-edge utility for text-processing on the Unix-like environment
Published Birmingham : Packt Publishing, 2018

Copies

Description 1 online resource (408 pages)
Contents Cover; Title Page; Copyright and Credits; Dedication; Packt Upsell; Contributors; Table of Contents; Preface; Chapter 1: Getting Started with AWK Programming; AWK programming language overview; What is AWK?; Types of AWK; When and where to use AWK; Getting started with AWK; Installation on Linux; Using the package manager; Compiling from the source code; Workflow of AWK; Action and pattern structure of AWK; Example data file; Pattern-only statements; Action-only statements; Printing each input line/record; Using the BEGIN and END blocks construct; The BEGIN block; The body block
The END blockPatterns; Actions; Running AWK programs; AWK as a Unix command line; AWK as a filter (reading input from the Terminal); Running AWK programs from the source file; AWK programs as executable script files; Extending the AWK command line on multiple lines; Comments in AWK; Shell quotes with AWK; Data files used as examples in this book; Some simple examples with default usage; Multiple rules with AWK; Using standard input with names in AWK; AWK standard options; Standard command-line options; The -F option -- field separator; The -f option (read source file)
The -v option (assigning variables)GAWK-only options; The -- dump-variables option (AWK global variables); The -- profile option (profiling); The -- sandbox option; The -i option (including other files in your program); Include other files in the GAWK program (using @include); The -V option; Summary; Chapter 2: Working with Regular Expressions; Introduction to regular expressions; What is a regular expression?; Why use regular expressions?; Using regular expressions with AWK; Regular expressions as string-matching patterns with AWK; Basic regular expression construct
Understanding regular expression metacharactersQuoted metacharacter; Anchors; Matching at the beginning of a string; Matching at the end of a string; Dot; Brackets expressions; Character classes; Named character classes (POSIX standard); Complemented bracket expressions; Complemented character classes; Complemented named character classes; Alternation operator; Unary operator for repetition; Closure; Positive closure; Zero or one; Repetition ranges with interval expressions; A single number in brackets; A single number followed by a comma in brackets; Two numbers in brackets
Grouping using parenthesesConcatenation using alternation operator within parentheses; Backreferencing in regular expressions -- sed and grep; Precedence in regular expressions; GAWK-specific regular expression operators; Matching whitespaces; Matching not whitespaces; Matching words (\w); Matching non-words; Matching word boundaries; Matching at the beginning of a word ; Matching at the end of a word ; Matching not as a sub-string using; Matching a string as sub-string only using; Case-sensitive matching; Escape sequences; Summary; Chapter 3: AWK Variables and Constants
Summary AWK is one of the powerful utility which exists in all Unix and Unix-like distributions. This book covers the structure and the control flow of AWK program, regular expressions, and use of different operators to carry out various text processing and mining tasks. This book is packed with unique practical examples to practice AWK programming
Notes Built-in variables in AWK
Print version record
Subject AWK (Computer program language)
AWK (Computer program language)
Form Electronic book
ISBN 9781788397087
1788397088
1788391039
9781788391030