Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

finally, your script should list the contents of the main directory and each of the subdirectories ( using the ls command ) and redirect the

finally, your script should list the contents of the main directory and each of the subdirectories (using
the ls command) and redirect the output to a text file named output.txt. This file should reside in the
organized structure directory. Hint use the >> operator to prevent overwriting of the file every time
you run the ls command.
Once you run your shell script (organizer.sh) it should tidy up the disorganized structure so that your final
structure looks like this:
organized_structure\
entertainment\
entertainment_file1.txt,....etc.
recipes\
recipes_file1.txt,...
sports\
sports_file1.txt,...
technology\
technology_file1.txt,...
travel\
travel_file1.txt,

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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