Skip to content
This repository has been archived by the owner on Aug 8, 2022. It is now read-only.

chef-base-plans/gawk

Repository files navigation

Build Status

gawk

A tool for handling simple data-reformatting jobs. See documentation

Maintainers

Type of Package

Binary package

Use as Dependency

Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.

To add core/gawk as a dependency, you can add one of the following to your plan file.

Buildtime Dependency

pkg_build_deps=(core/gawk)

Runtime dependency

pkg_deps=(core/gawk)

Use as Tool

Installation

To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.

hab pkg install core/gawk --binlink

will add the following binaries to the PATH:

  • /bin/awk
  • /bin/gawk

Using an example binary

You can now use the binary as normal. For example:

/bin/gawk --help or gawk --help

$ gawk --help
Usage: gawk [POSIX or GNU style options] -f progfile [--] file ...
Usage: gawk [POSIX or GNU style options] [--] 'program' file ...
POSIX options:          GNU long options: (standard)
        -f progfile             --file=progfile
        -F fs                   --field-separator=fs
        -v var=val              --assign=var=val
Short options:          GNU long options: (extensions)
        -b                      --characters-as-bytes
        -c                      --traditional
        -C                      --copyright
...
...