-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmove-class.sh
executable file
·115 lines (69 loc) · 5.5 KB
/
move-class.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
#!/usr/bin/env bash
# move all class materials on the server and GitHub
cd "/home/deva/Documents/dps/utilities"
# bash push-sbs-pd.sh
# bash push-ru.sh
cd "/home/deva/Downloads"
cp -f "Vocab Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/vocab-pali-class.apkg"
mv -f "Vocab Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Vocab Pali Class.apkg"
cp -f "Grammar Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/grammar-pali-class.apkg"
mv -f "Grammar Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Grammar Pali Class.apkg"
cp -f "Roots Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/roots-pali-class.apkg"
mv -f "Roots Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Roots Pali Class.apkg"
cp -f "Phonetic Changes Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/phonetic-pali-class.apkg"
mv -f "Phonetic Changes Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Phonetic Changes Pali Class.apkg"
cp -f "Common Roots Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/common-roots-pali-class.apkg"
mv -f "Common Roots Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Common Roots Pali Class.apkg"
cp -f "Suttas Advanced Pali Class.apkg" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/suttas-advanced-pali-class.apkg"
mv -f "Suttas Advanced Pali Class.apkg" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/Suttas Advanced Pali Class.apkg"
echo "all apkg - done"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/"* "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/csvs/"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/class_all.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/vocab-pali-class.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/class_all.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/vocab-pali-class.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/phonetic_class.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/phonetic-pali-class.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/roots_class.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/roots-pali-class.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/suttas_class.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/suttas-advanced-pali-class.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/grammar/cl_sum_abbr.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/grammar-pali-class-abbr.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/grammar/cl_sum_gramm.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/grammar-pali-class-gramm.csv"
cp -rf "/home/deva/Documents/dpd-db/dps/csvs/anki_csvs/pali_class/grammar/cl_sum_sandhi.csv" "/home/deva/Documents/sasanarakkha/study-tools/temp-push/grammar-pali-class-sandhi.csv"
# cp -f "/home/deva/Documents/dps/csv-for-anki/abbr.xlsx" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/Anki Decks/abbreviations.xlsx"
echo "all csv for anki - done"
# cp -f "/home/deva/Documents/dps/test.md" "/home/deva/Documents/sasanarakkha/study-tools/pali-class/class-test.md"
# echo "making wordtree"
# cd "/home/deva/Documents/dps/word-frequency/"
# bash wordtree-for-all-class.sh
# echo "wordtree cleaning"
# cd "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/wordtree"
# find . -wholename './class1/*' | xargs rm -rf
# find . -wholename './class2/*' | xargs rm -rf
# find . -wholename './class3/*' | xargs rm -rf
# find . -wholename './class4/*' | xargs rm -rf
# find . -wholename './class5/*' | xargs rm -rf
# find . -wholename './class6/*' | xargs rm -rf
# find . -wholename './class7/*' | xargs rm -rf
# find . -wholename './class8/*' | xargs rm -rf
# find . -wholename './class9/*' | xargs rm -rf
# find . -wholename './class10/*' | xargs rm -rf
# find . -wholename './class11/*' | xargs rm -rf
# find . -wholename './class12/*' | xargs rm -rf
# find . -wholename './class13/*' | xargs rm -rf
# find . -wholename './class14/*' | xargs rm -rf
# cd "/home/deva/Documents/sasanarakkha/study-tools/pali-class/wordtree"
# find . -wholename './class1/*' | xargs rm -rf
# find . -wholename './class2/*' | xargs rm -rf
# find . -wholename './class3/*' | xargs rm -rf
# find . -wholename './class4/*' | xargs rm -rf
# find . -wholename './class5/*' | xargs rm -rf
# find . -wholename './class6/*' | xargs rm -rf
# find . -wholename './class7/*' | xargs rm -rf
# find . -wholename './class8/*' | xargs rm -rf
# find . -wholename './class9/*' | xargs rm -rf
# find . -wholename './class10/*' | xargs rm -rf
# find . -wholename './class11/*' | xargs rm -rf
# find . -wholename './class12/*' | xargs rm -rf
# find . -wholename './class13/*' | xargs rm -rf
# find . -wholename './class14/*' | xargs rm -rf
# cp -rf "/home/deva/Documents/dps/word-frequency/pics-wordtree/wordtree" "/home/deva/filesrv1/share1/Sharing between users/13 For Pāli class/"
# cp -rf "/home/deva/Documents/dps/word-frequency/pics-wordtree/wordtree" "/home/deva/Documents/sasanarakkha/study-tools/pali-class/"
# echo "all pics-wordtree - done"
echo "all done - new class updated"