-
Notifications
You must be signed in to change notification settings - Fork 0
/
trainMove.sh
71 lines (64 loc) · 2.09 KB
/
trainMove.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
cd /Users/alanferia/Downloads/images/
mkdir Bird
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/birdPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/birdID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Bird/"${name}".jpg;
done
done
mkdir Empty
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/emptyPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/emptyID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Empty/"${name}".jpg;
done
done
mkdir Fox
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/foxPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/foxID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Fox/"${name}".jpg;
done
done
mkdir Human
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/humanPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/humanID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Human/"${name}".jpg;
done
done
mkdir Other
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/otherPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/otherID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Other/"${name}".jpg;
done
done
mkdir Rodent
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/rodentPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/rodentID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Rodent/"${name}".jpg;
done
done
mkdir Skunk
for file in $(cat /Users/alanferia/Downloads/content/fileByCat/skunkPath.txt);
do
path="${file%/*}";
for name in $(cat /Users/alanferia/Downloads/content/fileByCat/skunkID.txt);
do
echo mv "${file}" /Users/alanferia/Downloads/images/Skunk/"${name}".jpg;
done
done