nicowilliams / inplace

Stream editor adaptor for in-place editing
46 stars 3 forks source link

Add an example where inplace is used with xargs #5

Closed squid-lee closed 9 years ago

squid-lee commented 9 years ago

So I came across this looking for inplace editing with jq. My desired use case was to find all json files with a certain field, and set that field to '[]' if it existed.

I thought it'd serve as useful documentation to add an example of using inplace with xargs, although this example is probably a bit convoluted, so please tidy it up if you thing you've got a better version.

nicowilliams commented 9 years ago

Thanks!

nicowilliams commented 9 years ago

Closed with f663b71.