Recursive Search with grep -r
📖 Scenario: You are working on a project folder with many text files and subfolders. You want to find all files that contain a specific word inside this folder and its subfolders.
🎯 Goal: Learn how to use the grep -r command to search recursively for a word inside all files in a folder and its subfolders.
📋 What You'll Learn
Use the
grep -r command to search recursivelySearch for the exact word
TODOSearch inside the folder named
projectDisplay the matching lines with filenames
💡 Why This Matters
🌍 Real World
Searching for keywords like TODO, FIXME, or error messages inside large code or document folders.
💼 Career
Helps in debugging, code review, and managing large projects by quickly finding relevant information.
Progress0 / 4 steps