Question: Write this in #!/bin/bash (Linux) 7. As you know, the plain command touch filename creates the empty file filename. If you want to create a

 Write this in #!/bin/bash (Linux) 7. As you know, the plain

Write this in #!/bin/bash (Linux)

7. As you know, the plain command touch filename creates the empty file filename. If you want to create a non-empty file filled with some string, you can do echo string and redirect stdout to filename. In view of this, using either a for or a while loop, create a set of files whose name is of the type file-#.sh, where the symbol # is a natural number that goes from 20 to 50 with step 2, and where each file contains the string "echo #, the symbol # still being the variable number. Also, in the same loop, give executable permission to each created file for all users. (see seq and let)

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!