Using the command below i could find the total occurrences of the given string in the current directory.
cat * | grep -c 'nike'
In the same way, how to get the total count of files in which the given keyword appears atleast once?
Thanks a bunch
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
grep -l Nike * | wc -l
Don’t use cat.