Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a small shell script which does the following using shell functions: 1. Goes into a loop and prints out a menu with three options

Write a small shell script which does the following using shell functions:

1. Goes into a loop and prints out a menu with three options

1. Query the user for a month and year, then show the month using the cal command

2. Show who is logged on, then let the user send a message to another logged on user

3. Queries for a filename, then prints out the file type (file command), the owner, and the

file permissions

2. Reads the users selection and performs the selected function

3. Allows the user to exit the program with a return code of 0

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

Case Studies In Business Data Bases

Authors: James Bradley

1st Edition

0030141346, 978-0030141348

More Books

Students also viewed these Databases questions