Getting jawk
There are a few ways to install jawk
:
From source
To install jawk
from source, make sure you have the Rust toolchain installed. See details in here
From the repository
To install jawk
from the repository, one need to clone the repository, build the tool and copy the executable to the path.
For example, on linux (assuming ~/bin
is in the path):
git clone https://github.com/yift/jawk
cd jawk
cargo build -r
cp target/release/jawk ~/bin
Using Cargo
To install jawk using Cargo, one can simply run:
cargo install jawk
(To install rust see here).
From Docker
One can use jawk
docker container. Please note that this will not allow you to access any local files (unless you add them to the container volumes).
For example:
echo '{"a": 1}{"a": 10}{"a": 32}' | docker run -i --rm yiftach/jawk --select '.a=a' -o csv
(To install docker see here).
From binary
Some operating system binaries are available in: