2 ms·
Just go for `--json-output=filename` rather than playing games.
by kps 1y ago
Just go for `--json-output=filename` rather than playing games.
- 8n4vidtmkvmk 1y agoWhy filename? It doesn't need to know how to write files. That's what Greater than is for. Do --output=json
- kps 1y agoIt seemed that the author wants to write JSON in addition to regular output.
- 8n4vidtmkvmk 1y agoOh.. ya ok I guess you need to specify where to direct each output then. Kind of a weird use case. If it's not slow to process, you can usually just call the program twice.
- bcrl 1y ago--json-output=/dev/fd/3