Question: Write a shell script named 121.sh (be sure the file is executable before you submit it, and note the first letter of the file name

Write a shell script named 121.sh (be sure the file is executable before you submit it, and note the first letter of the file name is the letter I as in Larry but small) to do the following. It goes through all the files in the current directory. For every file it displays one line based on the file type. If the file is a directory, display "filename is a directory" without quotes and with filename replaced by the name of the file. If the file is not a directory, and is executable by the ownerm the program displays "filename is executable". Else it displays "filename is not executable". Note that there are only one spaces between the words, no spaces before the first character of after the last one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
