Nushell is a new shell built around data instead of text

I learned about Nushell from this video from Tom Delalande. I was blown away by how good it was at interrogating data.

Notes:

  • from json –objects parses JSONL, treating each line as a separate JSON object (e.g. open data.json | from json --objects)
  • table –expand renders nested records inline instead of collapsing them to {record 1 field}
  • explore is a pager like less but for tables in nushell

Useful commands

  • sort-by
  • reverse
  • where
  • first
  • get

References: