Question: Procedure: These steps assume you are using the Ubuntu Linux. Shell Scripts as wrappers for Linux Commands A wrapper is typically a function that is

 Procedure: These steps assume you are using the Ubuntu Linux. Shell
Scripts as "wrappers" for Linux Commands A "wrapper" is typically a function

Procedure: These steps assume you are using the Ubuntu Linux. Shell Scripts as "wrappers" for Linux Commands A "wrapper" is typically a function that is used to provide a simpler interface to another function. In this problem you will develop bash shell scripts that use the standard Linux commands to provide the user with a simple means to access the underlying functionality available in Linux. For directories with a large number of files, it is sometimes helpful to be able to list the contents based on some category of the files. Three obvious categories are: 1) directories 2) ordinary, executable files (these would be scripts or binary code) 3) ordinary, non-executable files (these would typically be text files, either data or source code) We assume that none of the hidden files will be listed when this script is run. Write a bash script named dlist that takes one argument, either a d, or an x, or an nx. If no argument or more than one argument is given, then print an error message, such as "incorrect number of arguments If the argument is "d', then dlist lists all of the directories within the current directory. If the argument is 'x' then dlist lists all of the ordinary, executable files (not directory). If the argument is nx' then dlist lists all the ordinary, non-executable files in the current directory a) Write the dlist script, test it, and then save it in your ee462 directory in AFS as dlist

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!