Home > Articles

This chapter is from the book

Exercise 75: Nevada Design

You are a programmer/administrator who has been assigned to Nevada Design on a short term, temporary basis. Nevada Design has a number of small jobs that they want you to do, as well as one simple request.

They would like a short shell script that will tell them how many users are listed in the /etc/passwd file on their server. They intend to run this on a regular basis to see if accounts get added and draw attention to them when they do.

Write as short a script as possible to accomplish this task for the customer.

For solutions to these exercises, visit our Safari bookshelf.

  • + Share This
  • 🔖 Save To Your Account