This repo contains a bash script named “cars.sh” that will help a user maintain an inventory of old cars. The user will be presented with a menu of three options:
- Add a car
- Asks individually for year, make, and model
- Appends list to file
- Creates tempFile that has the ':' delimiter exchanged for ' '
- Sorts the list and replaces the ' ' delimiter with ':'
- Renames the tempFile My_old_cars
- List the cars in the inventory file
- Reads the sorted list of cars
- Quit the program
If a user does not perform one of the possible menu options the program prompts for correct input.
If a user attempts to put non-digits into year the program re-prompts.