Created
April 29, 2018 08:17
-
-
Save francjohny/b57756a1e0124dd562959ca5ece2a32b to your computer and use it in GitHub Desktop.
Redis Mass Insertion Script - Mac OS
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
#!/usr/bin/env bash | |
readonly FILE=$1 | |
readonly HOST=$2 | |
perl -p -e 's|[\r\n]+|\r\n|g' ${FILE} | redis-cli --pipe -h ${HOST} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment