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
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started