Command
grep
Explanation
grep is used to search for patterns in files. It searches for the patterns in the files.
Examples
Search for "error" in file
grep "error" file.log
Recursive search in directory
grep -r "function" src/
grep
grep is used to search for patterns in files. It searches for the patterns in the files.
Search for "error" in file
grep "error" file.log
Recursive search in directory
grep -r "function" src/