-
Notifications
You must be signed in to change notification settings - Fork 0
/
Files_DeleteFiles_OSX.sh
46 lines (45 loc) · 1.32 KB
/
Files_DeleteFiles_OSX.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Shitty old script to clean directories on OSX
find . -name "*.html" -delete
find . -name "*.txt" -delete
find . -name "*.png" -delete
find . -name "*.jpg" -delete
find . -name "*.css" -delete
find . -name "*.gif" -delete
find . -name "*.zip" -delete
find . -name "*.doc" -delete
find . -name "*.docx" -delete
find . -name "*.xls" -delete
find . -name "*.htm" -delete
find . -name "*.ZIP" -delete
find . -name "*.ppt" -delete
find . -name "*.JPG" -delete
find . -name "*.js" -delete
find . -name "*.jpeg" -delete
find . -name "*.mht" -delete
find . -name "cv.pdf" -delete
find . -name "*.HTM" -delete
find . -name "*.ps" -delete
find . -name "*.dvi" -delete
find . -name "*.pps" -delete
find . -name "*.tif" -delete
find . -name "*.TIF" -delete
find . -name "*.TIFF" -delete
find . -name "*.tiff" -delete
find . -name "*.gz" -delete
find . -name "*.avi" -delete
find . -name "*.exe" -delete
find . -name "*.tex" -delete
find . -name "*.db" -delete
find . -name "*.GIF" -delete
find . -name "*.bmp" -delete
find . -name "*.xml" -delete
find . -name "*.thmx" -delete
find . -name "*.asc" -delete
find . -name "*.bind" -delete
find . -name "*.bat" -delete
find . -name "*.lyx" -delete
find . -name "*.LCK" -delete
find . -name "*.mno" -delete
find . -name ".DS_Store" -delete
find . -name "Cv.pdf" -delete
find /Volumes/VOLUMENAME/ -type d -empty -delete