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