logo rip
RIP Tutorial
  • Tags
  • Topics
  • Examples
  • eBooks
Download awk (PDF)

awk

  • Getting started with awk
  • Arrays
  • Built-in functions
  • Built-in Variables
    • ARGV, ARGC - Array of Command Line Arguments
    • FNR - Number of Records in File
    • FNR - The Current Record Number being processed
    • FS - Field Separator
    • FS - Field Separator
    • NF - Number of Fields
    • NF - Number of Fields
    • NR - Total Number of Records
    • OFS - Output Field Separator
    • OFS - Output Field Separator
    • ORS - Output Record Separator
    • ORS - Output Record Separator
    • RS - Input Record Separator
    • RS - Record Separator
  • Fields
  • Patterns
  • Patterns and Actions
  • Row Manipulation
  • String manipulation functions
  • Two-file processing
  • Useful one-liners - calculating average from a CSV etc
  • Variables


awk

  • Getting started with awk
  • Arrays
  • Built-in functions
  • Built-in Variables
    • ARGV, ARGC - Array of Command Line Arguments
    • FNR - Number of Records in File
    • FNR - The Current Record Number being processed
    • FS - Field Separator
    • FS - Field Separator
    • NF - Number of Fields
    • NF - Number of Fields
    • NR - Total Number of Records
    • OFS - Output Field Separator
    • OFS - Output Field Separator
    • ORS - Output Record Separator
    • ORS - Output Record Separator
    • RS - Input Record Separator
    • RS - Record Separator
  • Fields
  • Patterns
  • Patterns and Actions
  • Row Manipulation
  • String manipulation functions
  • Two-file processing
  • Useful one-liners - calculating average from a CSV etc
  • Variables

awkBuilt-in Variables


Built-in Variables Related Examples

  • ARGV, ARGC - Array of Command Line Arguments
  • FNR - Number of Records in File
  • FNR - The Current Record Number being processed
  • FS - Field Separator
  • FS - Field Separator
  • NF - Number of Fields
  • NF - Number of Fields
  • NR - Total Number of Records
  • OFS - Output Field Separator
  • OFS - Output Field Separator
  • ORS - Output Record Separator
  • ORS - Output Record Separator
  • RS - Input Record Separator
  • RS - Record Separator
PDF - Download awk for free


Previous Next
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0
This website is not affiliated with Stack Overflow