Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The DOS Rename command allows file suffixes to be changed so that: ren cpp chang

ID: 3786495 • Letter: T

Question

The DOS Rename command allows file suffixes to be changed so that: ren cpp changes all files with suffixes .c to the the name with suffix.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: proj3 dest] old extension new extension It should query the user about each file before rename (y or n) skip if n (or no Example: Suppose files a c b.c in the directory /dest A sample execution would be $proj3 ./dest c cpp rename a c? (y/n)y rename b.c? (y/n) n finshed $ls dest should include a cpp b.c

Explanation / Answer

else

echo "do not want to change"

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote