项目作者: sachaos

项目描述 :
Convert to JSON Lines from STDOUT.
高级语言: Go
项目地址: git://github.com/sachaos/jl.git
创建时间: 2020-09-19T19:59:00Z
项目社区:https://github.com/sachaos/jl

开源协议:MIT License

下载


jl (JSON by line)

Convert to JSON Lines from STDOUT.

The main purpose is pre-process output from UNIX command to query by jq.

Example

  1. $ ps aux | jl --header | jq -r ".USER" | sort | uniq
  2. ...
  3. root
  4. sachaos

Install

  1. $ git clone https://github.com/sachaos/jl.git
  2. $ cd jl
  3. $ go install