Ganti Extention file di dalam folder tertentu

Standard

Contoh Kasus:

– Folder A

———-aaaa.mp4

– Folder B

———-bbbb.mp4

Diganti dengan extention .flv

Shell command to bulk change file extensions in a directory
==================================================================
1. Change from one extension to another
The command below will rename all files with the extension .mp4 to .flv
for f in *.php4; do mv $f `basename $f .mp4`.flv; done;

2. Add (append) an extension to all files
The command below add the extension .txt to all files in the directory
for f in *; do mv $f `basename $f `.txt; done;

2. Remove (delete) an extension from all files
The command below remove the extension .txt from all files in the directory
for f in *.txt; do mv $f `basename $f .txt`; done;