Article 4X8AH Grep command for total line count containing matching word

Grep command for total line count containing matching word

by
atharvdesai1996
from LinuxQuestions.org on (#4X8AH)
grep -c "reqd string" *.txt
gives number of line count containing the required matching word in each file of the selected current directory. But , if I want to obtain single total count of lines containing the matching word from all the files in the selected directory, which command should I give?latest?d=yIl2AUoC8zA latest?i=5BfmdXgIgrw:yVf-vEqdaCY:F7zBnMy latest?i=5BfmdXgIgrw:yVf-vEqdaCY:V_sGLiP latest?d=qj6IDK7rITs latest?i=5BfmdXgIgrw:yVf-vEqdaCY:gIN9vFw5BfmdXgIgrw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments