Question: Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc. Write a bash script

Create x empty files in a given directory (x is a number), following a naming format like this: myfile1, myfile2, etc. Write a bash script to ask the user to enter the first part file name and the number of files he/she wants to create. Use the "touch" command to quickly create empty files. Also how would I execute the script in terminal. Please help me understand how to do this step by step.

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!