Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

ISBN: 061901556X, 978-0619015565

More Books

Students also viewed these Databases questions