Question: This is supposed to be in Kali Linux, I don't know what I am doing Overview This is a group assignment, 3 people at most

This is supposed to be in Kali Linux, I don't know what I am doing

This is supposed to be in Kali Linux, I don't know what

Overview This is a group assignment, 3 people at most in a group. Write a script ten_dirs.sh that does these tasks: - make a directory ten - make ten subdirectories ten/dir01, ten/dir02,.. through ten/dir10. Note the formatting dir01, dir02, etc., rather than dir1, dir2, etc. - in each subdirectory, make four files, file1.txt through file4.txt, such that file1.txt has one line consisting of the digit 1, file2.txt has two lines, each consisting of the digit 2, file3.txt has two lines, each containing the digit 3, and file4.txt has four lines, each containing the digit 4. Note that hard-coded solutions (e.g., writing mkdir dir01; mkdir dir02; ...), will not receive full credit. You should use a loop of some kind or another. Hint: A convenient way to remove the ten directory and all its files is rmr ten (search the rm manual page for r to see what it does), so a convenient way to rerun the scrip several times as you develop it is rm -r ten; ten_dirs.sh

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!