Cara Looping di Bash untuk ganti Ekstensi Files

for fn in *.amr; do \
  flatpak run --command=ffmpeg com.github.Bleuzen.FFaudioConverter -i "$fn" -c:a libvorbis "$(basename $fn .amr).oga"; \
done
(code above is just an example)

"$fn" => "$(basename $fn .amr).oga"
suara.amr => suara.oga

https://stackoverflow.com/questions/2664740/extract-file-basename-without-path-and-extension-in-bash

Komentar

Postingan populer dari blog ini

windows 11 remove usb write-protected

Tutorial susah instalasi GeoServer di Windows

Bagian-bagian Browser

nyoblos perdana