Effective awk programming

Effective awk Programming,3rd Edition, focuses entirely onawk, exploring it in the greatest depth of the three awk titles we carry. It's an excellent companion piece to the more broadly focused second edition. This book provides complete coverage of the gawk 3.1 language as well as the mos...

Descripción completa

Detalles Bibliográficos
Autor principal: Robbins, Arnold (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, California : O'Reilly 2001.
Edición:3rd ed
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627193306719
Tabla de Contenidos:
  • Table of Contents; Foreword; Preface; History of awk and gawk; A Rose by Any Other Name; Using This Book; Typographical Conventions; The GNU Project and This Book; How to Contribute; Acknowledgments; I. The awk Language and gawk; Chapter 1.Getting Started with awk; How to Run awk Prog rams; Running awk Without Input Files; Running Long Programs; Executable awk Programs; Shell-Quoting Issues; Datafiles for the Examples; Some Simple Examples; An Example with Two Rules; A More Complex Example; awk Statements Versus Lines; Other Features of awk; When to Use awk; Chapter 2. Regular Expressions
  • How to Use Regular ExpressionsEscape Sequences; Regular Expression Operators; Using Character Lists; gawk-Specific Regexp Operators; Case Sensitivity in Matching; How Much Text Matches?; Using Dynamic Regexps; Chapter 3. Reading Input Files; How Input Is Split into Records; Examining Fields; Non-constant Field Numbers; Changing the Contents of a Field; Specifying How Fields Are Separated; Using Regular Expressions to Separate Fields; Making Each Character a Separate Field; Setting FS from the Command Line; Field-Splitting Summary; Reading Fixed-Width Data; Multiple-Line Records
  • Explicit Input with getlineUsing getline with No Arguments; Using getline into a Variable; Using getline from a File; Using getline into a Variable from a File; Using getline from a Pipe; Using getline into a Variable from a Pipe; Using getline from a Coprocess; Using getline into a Variable from a Coprocess; Points to Remember About getline; Summary of getline Variants; Chapter 4. Printing Output; The print Statement; Examples of print Statements; Output Separators; Controlling Numeric Output with print; Using printf Statements for Fancier Printing; Introduction to the printf Statement
  • Format-Control LettersModifiers for printf Formats; Examples Using printf; Redirecting Output of print and printf; Special Filenames in gawk; Special Files for Standard Descriptors; Special Files for Process-Related Information; Special Files for Network Communications; Special Filename Caveats; Closing Input and Output Redirections; Chapter 5. Expressions; Constant Expressions; Numeric and String Constants; Octal and Hexadecimal Numbers; Regular Expression Constants; Using Regular Expression Constants; Variables; Using Variables in a Program; Assigning Variables on the Command Line
  • Conversion of Strings and NumbersArithmetic Operators; String Concatenation; Assignment Expressions; Increment and Decrement Operators; True and False in awk; Variable Typing and Comparison Expressions; Boolean Expressions; Conditional Expressions; Function Calls; Operator Precedence (How Operators Nest); Chapter 6. Patterns, Actions, and Variables; Pattern Elements; Regular Expressions as Patterns; Expressions as Patterns; Specifying Record Ranges with Patterns; The BEGIN and END Special Patterns; The Empty Pattern; Using Shell Variables in Programs; Actions; Control Statements in Actions
  • The if-else Statement