-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclean.sh
executable file
·57 lines (54 loc) · 1.07 KB
/
clean.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
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
EXT="bak data head log csv count info res send recv cs cm map"
DIR="build build/bin build/bin/backup backup ."
# SPT_DIR=$(dirname $(readlink -f "$0"))
# echo $SPT_DIR
for dir in $DIR
do
for ext in $EXT
do
if [ -d "$PWD/$dir" ]; then
# echo "remove file extent $ext in $PWD/$dir"
rm -fv $PWD/$dir/*.$ext
fi
done
done
# rm ./*.bak
# rm ./*.data
# rm ./*.head
# rm ./*.log
# rm ./*.csv
# rm ./*.count
# rm ./*.info
# rm ./*.res
# rm ./*.send
# rm ./*.recv
# rm ./*.cs
# rm ./*.cm
# rm ./*.map
# rm ./build/*/*.bak
# rm ./build/*/*.data
# rm ./build/*/*.head
# rm ./build/*/*.log
# rm ./build/*/*.csv
# rm ./build/*/*.count
# rm ./build/*/*.info
# rm ./build/*/*.res
# rm ./build/*/*.send
# rm ./build/*/*.recv
# rm ./build/*/*.cs
# rm ./build/*/*.cm
# rm ./build/*/*.map
# rm ./build/*/*/*.bak
# rm ./build/*/*/*.data
# rm ./build/*/*/*.head
# rm ./build/*/*/*.log
# rm ./build/*/*/*.csv
# rm ./build/*/*/*.count
# rm ./build/*/*/*.info
# rm ./build/*/*/*.res
# rm ./build/*/*/*.send
# rm ./build/*/*/*.recv
# rm ./build/*/*/*.cs
# rm ./build/*/*/*.cm
# rm ./build/*/*/*.map