Question: Please help me out in the scripting. I am totally new and want to learn about it. 2. Extend the myls or myls2 shell scripts

Please help me out in the scripting. I am totally new and want to learn about it.

2. Extend the myls or myls2 shell scripts to list the files in a different directory from the current directory, such as /usr/local. The script should still output the name of all the files in the directory.

3. Enhance the script you wrote for Exercise 2 to place the name of the directory in a variable and access the variable in the for loop.

4. Enhance the script you wrote for Exercise 3 to ask the user for the name of the directory to list.

5. Enhance the script you wrote for Exercise 4. This new script should ask the user the directory to list and then should output / after directory names and * after executable files. Do not output * if the file is a directory (and has execute permissions on the directory).

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!