in reply to Re^2: how to search for a string in a particular file?
in thread how to search for a string in a particular file?

grep "icecream" input.txt it only output the line that contain the "icecream". you can get more information by type man grep or grep --help.