1 option
Effective awk programming / Arnold Robbins.
- Format:
- Book
- Author/Creator:
- Robbins, Arnold.
- Language:
- English
- Subjects (All):
- AWK (Computer program language).
- Domain-specific programming languages.
- Physical Description:
- 1 online resource (454 p.)
- Edition:
- 3rd ed.
- Place of Publication:
- Sebastopol, California : O'Reilly, 2001.
- Language Note:
- English
- System Details:
- text file
- Summary:
- 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 most up-to-date coverage of the POSIX standard forawk available anywhere. Author Arnold Robbins clearly distinguishes standard awk features from GNU awk(gawk)-specific features, shines light into many of the ""dark corners"" of the langua
- Contents:
- 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
- Notes:
- "A GNU manual"--Cover.
- "Text processing & pattern matching"--Cover.
- Includes index.
- Description based on print version record.
- ISBN:
- 9780596805371
- 0596805373
- OCLC:
- 54115759
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.