Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books