I want print \"/\"
separator inside output title.
curl -s http://cd0a4a.ethosdistro.com/?json=yes \\
| jq -c \'.rigs|.\"0d6b27\",.\"50dc35\"|[.
You're doing a lot of unnecessary calls just to process the data. Your commands could be drastically simplified.
.rigs
object to get their values, you could just access them using []
.-r
.So your command turns into this instead:
$ curl -s http://cd0a4a.ethosdistro.com/?json=yes \
| jq -r '["version", "GPU_driver", "miner", "gpu"],
(.rigs[] | [.version, .driver, .miner, "\(.gpus)/\(.miner_instance)"])
| @csv' \
| csvlook -I