Skip to content

Instantly share code, notes, and snippets.

@arsperger
Created September 12, 2017 11:38
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save arsperger/6f246f21279edf3cd03ba2bee19daaef to your computer and use it in GitHub Desktop.
Save arsperger/6f246f21279edf3cd03ba2bee19daaef to your computer and use it in GitHub Desktop.
import csv file into redis with a single command
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