I would like to export a subset of my Redis data on the slave to a csv file. I notice a new csv output option was added to redis-cli but I am unable to find documentation of ho
The command:
redis-cli --csv hgetall mykey > stdout.csv
created a CSV file like:
"id","value","id","value", ...
To make life easier, I used:
sed -i 's/\([^\",]*",[^,]*\),/\1\n/g' stdout.csv
which converted the output into:
"id", "value" "id", "value" "id", "value" ...