Can someone create a short code that will rename a files extension in a sub directory using a command line option -r?
So if i have a file a.txt in folder called loc. I enter this "change -r txt doc" and the file will become a.doc in the loc sub directory (as in loc/a.doc).
I need to add this to a code of mine. Also the reason why I want to use a case statement is because I will be adding more options in the future.