BASH: Checking Users Input To File
ok im sorta stuck on this,
The user enters a car model and it has to check it in a text file in the current directory. If the car model is not in the file, user has to enter another model This is what i have so far Code:
read -p "Enter a car model: " car1 Code:
grep: Honda No such file or directory |
Code:
tmp$ cat carMakes.txt
|
Well you will need to do more to provide an error message, but maybe this will get you started:
Code:
car1='nocar' |
All times are GMT -5. The time now is 09:22 PM. |