Read a file and find a line
Find a specific line in a text file.
Beginner
Lesson goal
Find a specific line in a text file.
How it works
cat prints the file. grep finds matching lines. The training grep implements literal matching and -i.
cat notes/first.txt
grep -i pwd notes/first.txtTry it
Find the line mentioning pwd. Change the query and see what no matches looks like.