Skip to content

Instantly share code, notes, and snippets.

@wordswords
Last active September 11, 2017 16:11
Show Gist options
  • Save wordswords/f41be81faf17a037cacc8fee0edbe0d3 to your computer and use it in GitHub Desktop.
Save wordswords/f41be81faf17a037cacc8fee0edbe0d3 to your computer and use it in GitHub Desktop.
1
sudo -H -u llvm-test bash -c "shopt -s dotglob && /usr/bin/nice -15 /usr/bin/find /home/llvm-test/tests -mindepth 1 -mtime +14 -type f -name '*' -delete && /usr/bin/nice -15 /usr/bin/find /home/llvm-test/tests -mindepth 1 -mtime +14 -type d -name '*' -delete && shopt -u dotglob;"
2
for testpath in "/home/llvm-test/tests/shoji/Results_History" "/home/llvm-test/tests/batchgen/BatchGen/Results" "/home/llvm-test/tests/batchgen/BatchGen/Failed_Results" "/home/llvm-test/tests/shoji/Data/17*" "/home/llvm-test/tests/shoji/Dsc/17*"; do
sudo -H -u llvm-test bash -c "shopt -s dotglob && /usr/bin/nice -15 /usr/bin/find $testpath -mindepth 1 -mtime +14 -type f -name '*' -delete && /usr/bin/nice -15 /usr/bin/find $testpath -mindepth 1 -mtime +14 -type d -name '*' -delete && shopt -u dotglob;"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment