Skip to content

Structured Data in Oil

andychu edited this page Aug 24, 2021 · 37 revisions
Clone this wiki locally

Oil will parse text so you don't have to!

Links / Use Cases

Design Docs

Curiosities

Projects

All of these are obviously supported because Oil is a shell! But there are advantages to a built-in expression language. (It's deferred for 2020.)

dbohdan/structured-text-tools - A list of command line tools for manipulating structured text data

Examples

Miller:

$ mlr --icsv --opprint --barred \
  put '$tiv_delta = $tiv_2012 - $tiv_2011; unset $tiv_2011, $tiv_2012' \
  then sort -nr tiv_delta flins.csv 

It has a nice expression language. You compute new columns as a function of older ones, then drop them.