4 ms·
> bsed giant_malformatted.json replace '\'' with '\"' | bsed replace 'True' with 'true' | bsed replace 'False' with 'false' bsed giant_malformatted.json replac
by jancsika 8y ago
> bsed giant_malformatted.json replace '\'' with '\"' | bsed replace 'True' with 'true' | bsed replace 'False' with 'false'
bsed giant_malformatted.json replace '\'' that begins or ends a string with '\"' | bsed replace unquoted 'True' with 'true' | bsed replace unquoted 'False' with 'false'
- bihla 8y agoFair point. I mostly put those commands together to illustrate concepts. Two things you've touched on though that I haven't implemented yet: compound conditionals, and a nice way to indicated word boundaries (as opposed to the regex solution)