Skip to content

Instantly share code, notes, and snippets.

@holmeszyx
Last active October 10, 2016 10:07
Show Gist options
  • Save holmeszyx/a4b5353a5386e20e86c68fca1f4233e0 to your computer and use it in GitHub Desktop.
Save holmeszyx/a4b5353a5386e20e86c68fca1f4233e0 to your computer and use it in GitHub Desktop.
Delete gralde bulid dir, to release disk space
#!/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