I'm completing a command line game/challenge that involves solving a murder mystery.
One of the steps is to search for a suspect by using grep to search for multiple keywords in one file.
However that file contains thousands of lines of text that has the following format:
License Plate: L337ZR9
Make: Honda
Color: Red
Owner: Katie Park
Height: 6'2"
I have tried using grep in the following ways:
cat vehicles | grep -i 'L337' | grep -i 'honda'
ls | grep -i 'honda\|blue\|L337'
But as i understand it these commands will give me any result that matches any one of my three search terms.
What command do i need to search the vehicle file and display matches only match for Blue Honda with license plate of L337 - in other words what command allows grep to find and display results of multiple matching search terms?