Question: Write a bash script named hw13-2 that accepts a list of userids on the command line and a) If the userid has unread mail in

Write a bash script named hw13-2 that accepts a list of userids on the command line and a) If the userid has unread mail in /var/spool/mail, display "User has unread mail" b) If the userid has no unread mail in /var/spool/mail, display "User does not have mail"

SAMPLE COMMAND AND OUTPUT: > hw13-2 David.David random.student David.David has unread mail random.student does not have mail

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!