Skip to content

Instantly share code, notes, and snippets.

@dedunumax
Created November 16, 2014 06:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dedunumax/a1051d7e76a2f389dc55 to your computer and use it in GitHub Desktop.
Save dedunumax/a1051d7e76a2f389dc55 to your computer and use it in GitHub Desktop.
This command will insert first two columns of data.csv file into Redis database as key/value pair.
cat data.csv | awk -F',' '{print " SET \""$1"\" \""$2 "\"\n"}'| /opt/redis-2.8.17/src/redis-cli --pipe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment