␡
- Exercise 46: Alabama Cement
- Exercise 47: Alaska Tours and Such
- Exercise 48: Arizona Aluminum Manufacturing
- Exercise 49: Arkansas University
- Exercise 50: California Dreaming
- Exercise 51: Colorado Insurers
- Exercise 52: Connecticut Water
- Exercise 53: Delaware Trucking
- Exercise 54: Florida Reviewers
- Exercise 55: Georgia Widgets
- Exercise 56: Hawaii PineTrees, Inc.
- Exercise 57: Idaho Rock Quarries
- Exercise 58: Illinois Lotto
- Exercise 59: Indiana Reptiles
- Exercise 60: Iowa Retirement Homes
- Exercise 61: Kansas Vets, Ltd.
- Exercise 62: Kentucky’s D S Technical
- Exercise 63: Louisiana Fishing
- Exercise 64: Maine Asylums, LLC
- Exercise 65: Maryland Programming
- Exercise 66: Massachusetts Spammers
- Exercise 67: Michigan Growers
- Exercise 68: Minnesota River Authority
- Exercise 69: Mississippi Diabetes Group
- Exercise 70: Missouri Knife and Scissor
- Exercise 71: Montana Expeditions
- Exercise 72: North Carolina Swimmers
- Exercise 73: North Dakota Plastics
- Exercise 74: Nebraska Genealogy
- Exercise 75: Nevada Design
This chapter is from the book
Exercise 69: Mississippi Diabetes Group
The Mississippi Diabetes Group has hired you on a project basis to write a simple shell script for them. The script should ask for the name of a file. When the user enters the name of the file, the script should verify that the file exists within the current directory and that it is readable. If the file does not exist, it should be created with a zero size so that another program can then run without error.
Create this script, named MDG.sh, for the customer.