Commite Code
This commit is contained in:
13
Moodle/Tools/removeeng.sh
Normal file
13
Moodle/Tools/removeeng.sh
Normal 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\" ? \"$
|
||||
Reference in New Issue
Block a user