Created
December 31, 2014 11:01
-
-
Save ivamluz/d2369c49b2751062221d to your computer and use it in GitHub Desktop.
Recursively removes all Google AppEngine bulkloader ouput files inside a folder
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 | |
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