Last active
October 10, 2016 10:07
-
-
Save holmeszyx/a4b5353a5386e20e86c68fca1f4233e0 to your computer and use it in GitHub Desktop.
Delete gralde bulid dir, to release disk space
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
#!/bin/bash | |
# echo $# | |
scandir=$(pwd) | |
if [[ $# -gt 0 ]]; then | |
scandir=$1 | |
fi | |
# for gralde build temp dir | |
echo "Will scan build dir in ${scandir}" | |
find ${scandir} -type d -name build > build.txt | |
cat build.txt | xargs rm -rf | |
#rm build.txt | |
# for eclipse build temp dir | |
echo "Will scan bin dir in ${scandir}" | |
find ${scandir} -type d -name bin > bin.txt | |
cat bin.txt | xargs rm -rf | |
#rm bin.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment