I sometimes need to change extension of multiple files in a folder. So I wrote a bash script to do this easily. And I am sharing it from here. It’s simple to use it. For example; you have a folder named folder1 and it has files with the extension ‘.abc‘ in it. And you want to change ‘.abc‘ extension with ‘.txt‘. The only thing you must do is run the commandline bottom;
bash rename_extension.sh abc txt /dir1/dir2/folder1
You can download script from here.
Yazının Türkçe versiyonuna buradan erişebilirsiniz.