How to change extension of multiple files (bash script)
Contents
The following is the script I use in Macbook (Mountain Lion). It should work on most /*nix shell like bash
, csh
, ksh
etc.
However, I have tested it only in bash
.
|
|
Save this file as “chext”, make it executable chmod +x chext
and add to your $PATH
.
Now you can use it like this:
|
|
|
|
Reference:
Author: Deepu Mohan Puthrote
Link: https://deepumohan.com/tech/how-to-change-extension-of-multiple/
This work by Deepu Mohan Puthrote is licensed under a Creative Commons Attribution 4.0 International License