Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Students also viewed these Databases questions