#!cd /Users/apple/Desktop/all cd /Users/apple/Downloads/money_heist/season_1 for n in *.srt; do echo "rename $n" r=${n/.Farsi.Dubbed/.x265.PSA} #!f=${n/La.casa.de.papel./Money.Heist.} #!h=${f/.WEBRip.Netflix/.1080p.WEB-DL.Farsi.Dubbed} echo $r mv "/Users/apple/Downloads/money_heist/season_1/$n" "/Users/apple/Downloads/money_heist/season_1/$r" done #!La.casa.de.papel.S01E01.WEBRip.Netflix.srt #!Money.Heist.S01E01.1080p.WEB-DL.Farsi.Dubbed #!Money.Heist.S01E05.1080p.WEB-DL.x265.PSA
یه سری خلاصه بش:
c="amirasfasf343434" echo $c echo ${c} echo ${#c} counts number of chars in c echo ${c:4} prints from index 4 to end (4 included) echo ${c:4:5} prints 5 chars starting from index 4 (4 included) d=${c/remove/replace}
فقط نمی دونم چرا برا من فقط اون اولی رو eplace می کنه
آموزش بش خوب:
https://amirsamimi.ir/bash_tutorials/
عاشق بش شدم :)
bash برای rename کردن زیرنویس ها
echo ,heist ,money ,apple ,users ,web ,money heist ,users apple ,season 1 ,web dl ,1080p web ,money heist season ,downloads money heist ,apple downloads money ,users apple downloads
درباره این سایت