Commite Code

This commit is contained in:
2025-08-20 09:47:42 +07:00
parent 066cecfad9
commit 7e99b228f5
47 changed files with 5279 additions and 0 deletions

13
Moodle/Tools/removeeng.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Qu<51>t c<>c file k?t th<74>c b?ng .en.vtt, .vi.vtt ho?c .srt
find . -type f \( -name "*.en.vtt" -o -name "*.vi.vtt" -o -name "*.srt" \) -print0 | while IFS= read -r -d $'\0' file; do
# Ki?m tra xem t<>n t?p c<> ch?a ' English' kh<6B>ng
if [[ "$file" == *" English."* ]]; then
# <20>?i t<>n file b?ng c<>ch x<>a ' English' tru?c ph?n m? r?ng
newfile=$(echo "$file" | sed 's/ English\././')
# <20>?i t<>n t?p
mv "$file" "$newfile"
echo "<EFBFBD><EFBFBD> d?i t<>n: \"$file\" ? \"$