ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
30.59k stars 775 forks source link

Proposal: gron #80

Open seanjensengrey opened 2 years ago

seanjensengrey commented 2 years ago

Gron is a nice json tree to a line per leaf element transformer and back again. It pairs nicely with jq

▶ gron "https://api.github.com/repos/tomnomnom/gron/commits?per_page=1" | fgrep "commit.author" | gron --ungron
[
  {
    "commit": {
      "author": {
        "date": "2016-07-02T10:51:21Z",
        "email": "mail@tomnomnom.com",
        "name": "Tom Hudson"
      }
    }
  }
]
slavaGanzin commented 2 years ago

or you can use fx and not three differenet tools