Skip to content

Instantly share code, notes, and snippets.

@trepmal
Created July 17, 2014 21:56
Show Gist options
  • Save trepmal/f0da868867bf01bdd6f5 to your computer and use it in GitHub Desktop.
Save trepmal/f0da868867bf01bdd6f5 to your computer and use it in GitHub Desktop.
#!/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