forked from daveabbott/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflushCache.sh
More file actions
executable file
·66 lines (55 loc) · 1.34 KB
/
flushCache.sh
File metadata and controls
executable file
·66 lines (55 loc) · 1.34 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# Removes all files within the directory. Preserves the directory itself.
function flush {
if [ -d "$1" ]
then
rm -r "$1/"* 2> /dev/null
echo " flushed - $1/"
else
echo " doesn't exist - $1"
fi
}
echo
echo ADOBE
echo ----------------
flush "$HOME/Library/Caches/Adobe/After Effects"
flush "$HOME/Library/Caches/Adobe/Adobe Media Encoder"
flush "$HOME/Library/Caches/Adobe Camera Raw"
flush "$HOME/Library/Application Support/Adobe/Common"
flush "/Volumes/RAID_SSD/SCRATCH/adobe"
echo
echo MARI
echo ----------------
flush "/Volumes/RAID_SSD/SCRATCH/Mari"
echo
echo MOCHA
echo ----------------
flush "/var/tmp/MoTemp"
flush "/var/tmp/MoTempBCC"
flush "/Volumes/RAID_SSD/SCRATCH/mocha"
echo
echo MODO
echo ----------------
flush "$HOME/Library/Application Support/Luxology/AutoSave"
flush "/Volumes/RAID_SSD/SCRATCH/modo"
echo
echo NUKE
echo ----------------
flush "/var/tmp/nuke-u501"
flush "/Volumes/RAID_SSD/SCRATCH/nuke/BlockCache"
flush "/Volumes/RAID_SSD/SCRATCH/nuke/ViewerCache"
flush "/Volumes/RAID_SSD/SCRATCH/nuke/tileCache"
flush "/Volumes/RAID_SSD/SCRATCH/nuke/flipbook"
flush "/Volumes/RAID_SSD/SCRATCH/nuke/ofxplugincache"
## LINUX
flush "/var/tmp/nuke-u1000"
echo
echo RESOLVE
echo ----------------
flush "$HOME/Movies/CacheClip"
flush "/Volumes/RAID_SSD/SCRATCH/resolve"
echo
echo FLUSH COMPLETE
echo ----------------
echo
exit