Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code in Linux Please. List of Directories: 2. Listing and sorting directories Create a Bash script that accepts directory paths as arguments. For each argument,

Code in Linux Please.

image text in transcribed

List of Directories:

image text in transcribed

2. Listing and sorting directories Create a Bash script that accepts directory paths as arguments. For each argument, list the contents of each directory with the name of each listed at the top. If you want to give yourself an added challenge, have your script accept an additional argument, " a " or " d," that sorts the contents of each directory in either ascending or descending order. For even more of a challenge, create a Bash script that sorts the contents of the directories based on an "a" or "d" argument that directly precedes it. In other words, you should be able to sort one directory in ascending order, a second directory in descending order, and so on. Desktop Documents Downloads Music Pictures Public Templates test Videos

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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