Question: Exercise 5: Write a shell script that displays man, bear, pig, dog, cat, and sheep to the screen with each appearing on a separate line.

Exercise 5: Write a shell script that displays "man", "bear", "pig", "dog", "cat", and sheep to the screen with each appearing on a separate line. Try to do this in as few lines as possible. Hint: Loops can be used to perform repetitive tasks Exercise 6: Write a shell script that prompts the user for a name of a file or directory and reports if it is a regular file, a directory, or other type of file. Also perform an ls command against the file or directory with the long listing option. Exercise 7: Modify the previous script so that it accepts the file or directory name as an argument instead of prompting the user to enter it. Exercise 8: Modify the previous script to accept an unlimited number of files and directories as arguments. Hint: You'll want to use a special variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
