REPL calculator in Bash and AWK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Blau Araujo 3737391d37 version 3 (bug fixes) 1 year ago
-1 version 3 (bug fixes) 1 year ago
LICENSE Initial commit 1 year ago
Makefile man page and makefile 1 year ago
README.md readme updated 1 year ago
cawk version 3 (bug fixes) 1 year ago
cawk.1 version 3 (bug fixes) 1 year ago

README.md

cawk

REPL calculator in Bash and GNU awk

Usage

cawk [-f PRECISION]                 - Start in REPL mode.
cawk -e EXPRESSION [-f PRECISION]   - Eval EXPRESSION and quit.
COMMAND | cawk [-f PRECISION]       - Eval expressions from COMMAND output.
cawk [-f PRECISION] < FILE          - Eval expressions list in FILE.

Options

-e EXPRESSION   Expression to evaluate.
-f PRECISION    Number of positions after decimal point.

Commands (in REPL mode)

  f PRECISION   Redefine precision.
  h or ?        Help.
  q or quit     Exit.

Depends

  • Bash 5+
  • GNU awk

Install

Clone this repository:

:~$ git clone https://git.blauaraujo.com/blau_araujo/cawk.git

As root, enter cawk directory and run:

make install

Uninstall

As root, enter cawk directory and run:

make uninstall