rawk-cli 0.1.0

The rawk cli, which is an AWK interpreter clone. The goal is to be POSIX compatible.
rawk-cli-0.1.0 is not a library.

rawk-cli

CI codecov License: MIT

Command-line interface for the rawk AWK interpreter. This crate wires rawk-core into a rawk binary and handles argument parsing, script loading, and input file processing.

Installation

From crates.io

Install the rawk binary using cargo:

cargo install rawk-cli

Then use the rawk command:

rawk --version

From source

Clone the repository and build from the workspace:

git clone https://github.com/stefanalfbo/rawk.git
cd rawk
cargo install --path crates/rawk-cli

Usage

Provide a program and an input file:

rawk "{ print $1 }" input.txt

Read the program from a file and pass the input file:

rawk -f program.awk input.txt