Question: Create a shell script that will rename all the files of a given extension in directory Project1. The script should take two arguments: a base

Create a shell script that will rename all the files of a given extension in directory Project1. The script should take two arguments: a base name for renaming, and a file extension based on which to choose the files. For example, if we run bash project.sh project_codes py the resulting files in the directory should be something like: project_poor0.py, project_poor1.py, etc.. (initial files are named poor0.py , poor1.py etc.).. I know the code that I need to use to answer this question but can someone please explain what the base name and extension are in this case, and what the new name of the files to be used in the code be?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!