How do I use grep to search the current directory for any and all files containing the string “hello” and display only .h and .cc files?
Share
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.
This reads: search recursively (in all sub directories also) for all .cc OR .h files that contain “hello” at this
.(current) directoryFrom another stackoverflow question