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.
In reply to Re^3: how to search for a string in a particular file?
by vinian
in thread how to search for a string in a particular file?
by tm86
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |