Skip to content

Instantly share code, notes, and snippets.

@ivamluz
Created December 31, 2014 11:01
Show Gist options
  • Save ivamluz/d2369c49b2751062221d to your computer and use it in GitHub Desktop.
Save ivamluz/d2369c49b2751062221d to your computer and use it in GitHub Desktop.
Recursively removes all Google AppEngine bulkloader ouput files inside a folder
#!/usr/bin/env bash
FOLDER=$1
if [ -z "$FOLDER" ]; then
echo "Usage: cleanup-bulkloader-logs.sh </path/to/dir>"
exit 1
fi
echo "Recursively cleaning up bulkloader-log* files under ${FOLDER}"
find $FOLDER -type f -name "bulkloader-log*" -exec rm -f {} \;
echo "Recursively cleaning up bulkloader-progress* files under ${FOLDER}"
find $FOLDER -type f -name "bulkloader-progress*" -exec rm -f {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment