Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
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