From 722eab83b16a51bb15228076b92e125f02567442 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 21 May 2022 07:00:43 -0700 Subject: [PATCH] add Other Shell section --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3fa2fe29..6c079cb7 100644 --- a/README.md +++ b/README.md @@ -442,6 +442,21 @@ If a UTC timezone can be detected in the text of the command output, the timestamp will be timezone aware and have a `_utc` suffix on the key name. (e.g. `epoch_utc`) No other timezones are supported for aware timestamps. +## Use In Other Shells +`jc` can be used in most any shell. Some modern shells have JSON deserialization +and filtering capabilities built-in which makes using `jc` even more convenient. + +For example, the following is possible in [NGS](https://ngs-lang.org/) +(Next Generation Shell): +```bash +myvar = ``jc dig www.google.com``[0].answer[0].data +``` +This runs `jc`, parses the output JSON, and assigs the resulting data structure +to a variable in a single line of code. + +For more examples of how to use `jc` in other shells, see this +[wiki page](https://github.com/kellyjonbrazil/jc/wiki/Using-jc-With-Different-Shells). + ## Compatibility Some parsers like `dig`, `xml`, `csv`, etc. will work on any platform. Other parsers that convert platform-specific output will generate a warning message if