ddopson / underscore-cli

Command-line utility-belt for hacking JSON and Javascript.
Other
1.72k stars 83 forks source link

Support for `pick` #32

Open STRd6 opened 10 years ago

STRd6 commented 10 years ago

I'm trying to grab a subset of values from a json file to use as variables in a bash script

Ideally something like:

declare $width $height
read width height <<< `underscore pick width height < data.json`

Currently there is no support for pick at all, but it would be very useful to me at least.