Skip to content

donnerhanson/cars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

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:

  1. Add a car
    1. Asks individually for year, make, and model
    2. Appends list to file
    3. Creates tempFile that has the ':' delimiter exchanged for ' '
    4. Sorts the list and replaces the ' ' delimiter with ':'
    5. Renames the tempFile My_old_cars
  2. List the cars in the inventory file
    1. Reads the sorted list of cars
  3. Quit the program

Features

User Input Checking

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages