Created
July 17, 2014 21:56
-
-
Save trepmal/f0da868867bf01bdd6f5 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# save this file as something like bulkimport.sh | |
# pass directory as first arg | |
# e.g. | |
#> ./bulkimport.sh xmls-in-here/ | |
for wxr in `find $1`; | |
do | |
if [ -f $wxr ] | |
then | |
# echo $wxr | |
wp import $wxr | |
fi | |
done; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment