1

from Linux command line, find number of lines in which a string occurs

view story
linux-howto

http://stackoverflow.com – I have a file in the location /home/someuser/sometext.txt . I want to count the number of lines in which a particular string occurs. What's the way to do that from Linux command line? (HowTos)