Browse Source

A dysfunctional cleaning script for Cygwin

Cameron Weinfurt 1 year ago
commit
2566eaab8f
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      test_script

+ 13
- 0
test_script View File

@@ -0,0 +1,13 @@
1
+cd /cygdrive/c/Users/csguest
2
+
3
+find . -maxdepth 1 -type f -ok rm '{}' \;
4
+
5
+cd Desktop
6
+find -not -name "This Pc.lnk" -ok rm '{}' \;
7
+
8
+cd ../Documents
9
+find . -maxdepth 1 -type f -ok rm '{}' \;
10
+find . -maxdepth 1 -not \( -type d \( -name "MATLAB" -o -name "Visual Studio 2015" \) \) -ok rm -rf '{}' \;
11
+
12
+cd ..
13
+rm -rf Downloads; mkdir Downloads

Loading…
Cancel
Save