Command
grepExplanation
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.logRecursive search in directory
grep -r "function" src/grepgrep is used to search for patterns in files. It searches for the patterns in the files.
Search for "error" in file
grep "error" file.logRecursive search in directory
grep -r "function" src/