Browse Source

A dysfunctional cleaning script for Cygwin

master
Cameron Weinfurt 3 years ago
commit
2566eaab8f
  1. 13
      test_script

13
test_script

@ -0,0 +1,13 @@
cd /cygdrive/c/Users/csguest
find . -maxdepth 1 -type f -ok rm '{}' \;
cd Desktop
find -not -name "This Pc.lnk" -ok rm '{}' \;
cd ../Documents
find . -maxdepth 1 -type f -ok rm '{}' \;
find . -maxdepth 1 -not \( -type d \( -name "MATLAB" -o -name "Visual Studio 2015" \) \) -ok rm -rf '{}' \;
cd ..
rm -rf Downloads; mkdir Downloads
Loading…
Cancel
Save