Question: The DOS Rename command allows file suffixes to be changed so that: ren c *.cpp changes all files with suffixes .c to the suffix the


The DOS Rename command allows file suffixes to be changed so that: ren c *.cpp changes all files with suffixes .c to the suffix the name with .cpp. So a c is renamed a cpp; b.c is renamed b.ccp...for all files in the path Write a bash shell script that takes the destination path (directory dest as an optional parameter and renames all files in dest or current directory with old extension to new extension. The format is S proj3 [dest] old extension new extension It should query the user about each file before r (y or n skip if n (or no Example: Suppose files a.c b.c in the directory./dest A sample execution would be Sproj3 dest c cpp rename a c? (y)y rename b.c? Cy) n. finshed Sls dest should include a cpp b.c If no destination is provided, assume the current working directory is the destination which includes files a c, b.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
