💻 Software
How can I recursively grep particular files in a directory?
Fresh5 days ago
Mar 15, 202611497 viewsConfidence Score0%
0%
Problem
I'm new to linux and grep, and trying to find my way around. By using I am able to find the names of all of the java files in a particular directory. Suppose I want to count the number of times occurs in these files, how would I do that? I'be been trying things like: and getting responses like: Any…
Error Output
grep -r "foo" *.java
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How can I recursively grep particular files in a directory?
Low Risk
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix