Answered step by step
Verified Expert Solution
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 organizersh it should tidy up the disorganized structure so that your final structure looks like this: organizedstructure entertainment entertainmentfiletxtetc. recipes recipesfiletxt sports sportsfiletxt technology technologyfiletxt travel travelfiletxt
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 organizersh it should tidy up the disorganized structure so that your final
structure looks like this:
organizedstructure
entertainment
entertainmentfiletxtetc.
recipes
recipesfiletxt
sports
sportsfiletxt
technology
technologyfiletxt
travel
travelfiletxt
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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