Skip to content

Add a terminal alias to pretty print non json output in json for use in shell pipelines #123

Description

@tzeikob

For use cases like getting an output of a shell command in non valid json form add and use the following alias:

alias pt="jq -R '. as \$l | try (fromjson) catch (\$l + \"\n\" | stderr | empty)'"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

FEATURENew feature to be added

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions