How do you grep a shell script?

Thanh Hoan

New member
How do you grep a shell script?
Answer
Try: grep -R WORD ./ to search the entire current directory, or grep WORD ./path/to/file. ext to search inside a specific file. This works fine to find the exact word match in a file.
 

Tìm kiếm

Back
Top