Created
September 12, 2017 11:38
-
-
Save arsperger/6f246f21279edf3cd03ba2bee19daaef to your computer and use it in GitHub Desktop.
import csv file into redis with a single command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2"\" \n"}' | redis-cli --pipe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment