Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 717 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 717 Bytes

awk-boilerplate

AWK CI

A starting point for larger AWK scripts

Features:

  • define required/optional parameters

  • show usage when input is empty

      script.awk v1.0.0 - by peter@forret.com
      <https://github.com/pforret/awk-boilerplate>
      Purpose: Read data file 1 and filter it into data file 2
      Usage  : script.awk -v <option>=<value>
      Options:
      	-v input=<source file> (default: )
      	-v output=<result file> (default: )
      	-v steps=<number of steps> (default: 10)
      	-v verbose=<more information on stderr> (default: 0)
      	-v silent=<no information on stderr> (default: 0)
    
  • functions for output: out() / debug() / progress()