-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete.sh
117 lines (105 loc) · 1.78 KB
/
delete.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
choice="$(zenity --width=100 --height=360 --list --column "Choix" --checklist --title="Fichiers à supprimer" --text " Sélectionner" \
--column="Noms"\
FALSE deb \
FALSE exe \
FALSE zip \
FALSE rar \
FALSE 7z \
FALSE pdf \
FALSE epub \
FALSE mp3 \
FALSE avi \
FALSE mp4 \
FALSE mkv \
)"
if [ "${PIPESTATUS[0]}" != "0" ]; then
exit
fi
case "${choice}" in
*"deb"* )
echo "# Supression des fichiers deb"
cd ~/Downloads
rm -f *.deb
echo "30"
;;
esac
case "${choice}" in
*"exe"* )
echo "# Supression des fichiers exe"
cd ~/Downloads
rm -f *.exe
echo "30"
;;
esac
case "${choice}" in
*"zip"* )
echo "# Supression des fichiers zip"
cd ~/Downloads
rm -f *.zip
echo "30"
;;
esac
case "${choice}" in
*"rar"* )
echo "# Supression des fichiers rar"
cd ~/Downloads
rm -f *.rar
echo "30"
;;
esac
case "${choice}" in
*"7z"* )
echo "# Supression des fichiers 7z"
cd ~/Downloads
rm -f *.7z
echo "30"
;;
esac
case "${choice}" in
*"pdf"* )
echo "# Supression des fichiers pdf"
cd ~/Downloads
rm -f *.pdf
echo "30"
;;
esac
case "${choice}" in
*"epub"* )
echo "# Supression des fichiers epub"
cd ~/Downloads
rm -f *.epub
echo "30"
;;
esac
case "${choice}" in
*"mp3"* )
echo "# Supression des fichiers mp3"
cd ~/Downloads
rm -f *.mp3
echo "30"
;;
esac
case "${choice}" in
*"avi"* )
echo "# Supression des fichiers avi"
cd ~/Downloads
rm -f *.avi
echo "30"
;;
esac
case "${choice}" in
*"mp4"* )
echo "# Supression des fichiers mp4"
cd ~/Downloads
rm -f *.mp4
echo "30"
;;
esac
case "${choice}" in
*"mkv"* )
echo "# Supression des fichiers mkv"
cd ~/Downloads
rm -f *.mkv
echo "30"
;;
esac