How do I search for something in a file?
-
Remember you can only search a text file this way. To find a word, number or some text in a text file, use the following
This checks to see if the word cheese exists in the file /tmp/textfile, if it exists then all lines that contain that word is displayed
$ grep cheese /tmp/textfile
© Lightnetics 2024