underscore-cli icon indicating copy to clipboard operation
underscore-cli copied to clipboard

Feature request: Split into null-separated objects on command-line

Open mrquincle opened this issue 11 years ago • 1 comments

It would be great if I would be able to split a json array in multiple files. I have not found a way to create null-separated items that I can fed into xargs -0 yet. Maybe it is already possible.

mrquincle avatar Jan 15 '14 13:01 mrquincle

By the way, on the moment I do it on the command-line with csplit:

csplit file.json '/item/-1' '{*}'

mrquincle avatar Jan 15 '14 13:01 mrquincle