I\'ve read mass-insert provided at redis.io, but it really confused me. I tried to make a file then use \"cat data.txt | redis-cli --pipe\" to insert:
You can do it like this:
echo -e "$(cat data.txt)" | redis-cli --pipe
I hope that helps you!