-
Notifications
You must be signed in to change notification settings - Fork 0
/
shivasort.sh
102 lines (85 loc) · 2.74 KB
/
shivasort.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
#This script written by Mr.N.Shivakumar AP/Mech from Mechanical enginnering PMU
#\Create mp3 directory in the current pendrive
mkdir mp3 .
#mkdir $(date +"%Y-%m-%d") ./audio/
find . -iname "*.mp3" -exec mv {} ./mp3 \;
find . -iname "*.aac" -exec mv {} ./mp3 \;
find . -iname "*.adt" -exec mv {} ./mp3 \;
find . -iname "*.adts" -exec mv {} ./mp3 \;
find . -iname "*.accb" -exec mv {} ./mp3 \;
find . -iname "*.aif" -exec mv {} ./mp3 \;
find . -iname "*.aifc" -exec mv {} ./mp3 \;
find . -iname "*.aiff" -exec mv {} ./mp3 \;
find . -iname "*.amr" -exec mv {} ./mp3 \;
find . -iname "*.m4a" -exec mv {} ./mp3\;
find . -iname "*.mov" -exec mv {} ./mp3 \;
find . -iname "*.wma" -exec mv {} ./mp3 \;
find . -iname "*.wave" -exec mv {} ./mp3 \;
find . -iname "*.flac" -exec mv {} ./mp3 \;
#Create mp4 directory in pwd
mkdir video .
#mkdir $(date +"%Y-%m-%d") ./video/
find . -iname "*.mp4" -exec mv {} ./mp4 \;
find . -iname "*.avi" -exec mv {} ./mp4 \;
find . -iname "*.3gp" -exec mv {} ./mp4 \;
find . -iname "*.mkv" -exec mv {} ./mp4 \;
find . -iname "*.flv" -exec mv {} ./mp4 \;
find . -iname "*.mpeg" -exec mv {} ./mp4 \;
find . -iname "*.swf" -exec mv {} ./mp4 \;
#Create executable
mkdir exe .
#mkdir $(date +"%Y-%m-%d") ./exe/
find . -iname "*.exe" -exec mv {} ./exe \;
#create jpg folder in pwd
mkdir jpg .
find . -iname "*.jpg" -exec mv {} ./jpg \;
find . -iname "*.jpeg" -exec mv {} ./jpg \;
find . -iname "*.bmp" -exec mv {} ./jpg \;
find . -iname "*.png" -exec mv {} ./jpg \;
find . -iname "*.gif" -exec mv {} ./jpg \;
find . -iname "*.png" -exec mv {} ./jpg \;
find . -iname "*.tif" -exec mv {} ./jpg \;
find . -iname "*.tiff" -exec mv {} ./jpg \;
#Create archive
mkdir zip .
find . -iname "*.zip" -exec mv {} ./zip \;
find . -iname "*.7z" -exec mv {} ./zip \;
find . -iname "*.rar" -exec mv {} ./zip \;
find . -iname "*.iso" -exec mv {} ./zip \;
find . -iname "*.tar" -exec mv {} ./zip \;
find . -iname "*.tar.gz" -exec mv {} ./zip \;
#Create pdf
mkdir pdf .
find . -iname "*.pdf" -exec mv {} ./pdf \;
find . -iname "*.djvu" -exec mv {} ./pdf \;
#Create docx
mkdir doc .
find . -iname "*.doc" -exec mv {} ./doc \;
find . -iname "*.docx" -exec mv {} ./doc \;
find . -iname "*.txt" -exec mv {} ./doc \;
find . -iname "*.rtf" -exec mv {} ./doc \;
mkdir excel .
find . -iname "*.xls" -exec mv {} ./excel \;
find . -iname "*.xlsx" -exec mv {} ./excel \;
#create ppt
mkdir ppt .
find . -iname "*.ppt" -exec mv {} ./ppt \;
find . -iname "*.pptx" -exec mv {} ./ppt \;
#Create apk
mkdir apk .
find . -iname "*.apk" -exec mv {} ./apk \;
#Create csv
mkdir csv .
find . -iname "*.csv" -exec mv {} ./csv \;
mkdir backup
mv apk backup
mv csv backup
mv doc backup
mv jpg backup
mv mp3 backup
mv mp4 backup
mv pdf backup
mv zip backup
mv excel backup
mv ppt backup
#Happy Ending Vanakkam in tamil