Command-Line Help for jawk

This document contains the help content for the jawk command-line program.

Command Overview:

jawk

An AWK like toold for JSON input.

This tool should allow one to manipulate an input file that contains JSON values into CSV or JSON output. See more details in https://jawk.ykaplan.me/

Usage: jawk [OPTIONS] [FILES]...

Arguments:
  • <FILES> — Input files
Options:
  • --on-error <ON_ERROR> — What to do on error

    Default value: ignore

    Possible values:

    • ignore: Do nothing with the error
    • panic: Exit the process on the first error
    • stderr: Output the errors to stderr
    • stdout: Output the errors to stdout
  • -c, --choose <CHOOSE> — What to output

  • -f, --filter <FILTER> — Filter the output. The expected format is <selection>

  • -b, --break-by <BREAK_BY> — Split the input by

  • -g, --group-by <GROUP_BY> — Group the output by

  • -s, --sort-by <SORT_BY> — How to order the output. Allow muttiploe sorting

  • -k, --skip <SKIP> — How many results to skip (if any)

    Default value: 0

  • -t, --take <TAKE> — Maximal number of result to process

  • -a, --additional-help <ADDITIONAL_HELP> — Additional help

    Possible values:

    • book: Open the book
    • selection: Additional help about the selection
    • functions: Additional help about the available functions
    • basic: Additional help about the basic functions group
    • flow: Additional help about the flow functions group
    • collection: Additional help about the collection functions group
    • types: Additional help about the types functions group
    • check_types: Additional help about the check_types functions group
    • cast: Additional help about the cast functions group
    • list: Additional help about the list functions group
    • list_producers: Additional help about the list_producers functions group
    • list_manipluations: Additional help about the list_manipluations functions group
    • list_functional: Additional help about the list_functional functions group
    • list_folding: Additional help about the list_folding functions group
    • object: Additional help about the object functions group
    • object_to_list: Additional help about the object_to_list functions group
    • sort_objects: Additional help about the sort_objects functions group
    • manipulate_object: Additional help about the manipulate_object functions group
    • functional_object: Additional help about the functional_object functions group
    • number: Additional help about the number functions group
    • string: Additional help about the string functions group
    • parse_and_stringify: Additional help about the parse_and_stringify functions group
    • regex: Additional help about the regex functions group
    • boolean: Additional help about the boolean functions group
    • compare: Additional help about the compare functions group
    • logical: Additional help about the logical functions group
    • time: Additional help about the time functions group
    • variables: Additional help about the variables functions group
    • proccess: Additional help about the proccess functions group
    • nas: Additional help about the nas functions group
    • nas_arithmetic: Additional help about the nas_arithmetic functions group
    • nas_compare: Additional help about the nas_compare functions group
  • -u, --unique — Avoid posting the same output more than once

    Possible values: true, false

  • -e, --set <SET> — Predefine variables and macros

  • --regular-expression-cache-size <REGULAR_EXPRESSION_CACHE_SIZE> — Regular expression cache size

    Default value: 0

  • --only-objects-and-arrays — Only accept objects and array

    Possible values: true, false

  • -o, --output-style <OUTPUT_STYLE> — How to display the output

    Default value: json

    Possible values:

    • json: pretty JSON output
    • csv: CSV file format. This must have selection and can not be a produce of group by as we need to know the columns
    • text: Raw text output
  • -r, --row-seperator <ROW_SEPERATOR> — Row seperator

    Default value:

  • --style <STYLE> — Json output style

    Default value: one-line

    Possible values:

    • one-line: One line JSON
    • consise: Consise JSON output (no unneeded white spaces)
    • pretty: Pretty JSON output
  • --utf8-strings — Output string literal as UTF8 for JSON, (by default only ASCII will be used, and everything else will be escaped)

    Default value: false

    Possible values: true, false

  • --items-seperator <ITEMS_SEPERATOR> — Seperate items by (for text output)

    Default value:

  • --string-prefix <STRING_PREFIX> — What to add before a String value (for text output)

    Default value: ``

  • --string-postfix <STRING_POSTFIX> — What to add after a String value (for text output)

    Default value: ``

  • --headers — Include headers (for text output)

    Default value: false

    Possible values: true, false

  • --escape-sequance <ESCAPE_SEQUANCE> — Escape sequance. Can be set more than once. should be used with the escaped character followed by the excpaed sequance. For example, "\" will set the "`` to be escaped by a "` (for text output)

  • --null-keyword <NULL_KEYWORD> — How to display nulls values (for text output)

    Default value: null

  • --true-keyword <TRUE_KEYWORD> — How to display true values (for text output)

    Default value: true

  • --false-keyword <FALSE_KEYWORD> — How to display false values (for text output)

    Default value: false

  • --missing-value-keyword <MISSING_VALUE_KEYWORD> — How to display missing values (for text output)


This document was generated automatically by clap-markdown.