Last active
August 29, 2015 14:23
-
-
Save MikeNGarrett/fd5f301ad52235546bc3 to your computer and use it in GitHub Desktop.
Add a list of WordPress users from a CSV
This file contains hidden or 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
# CSV format: username, email, password | |
export IFS=","; cat /path/to/test.csv | while read a b c; do wp user create $a $b --user_pass=$c --role=administrator; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment