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
grep -w $car1=$(cat carMakes.txt)
test $? = 0 && echo "Car not found, try again please"
it executes but i get a long list saying, the following
Code:
grep: Honda No such file or directory