Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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