grep

Pattern matching engine.

grep [options] "pattern" [file or directory]

File/directory : Where grep needs to search. Searches in current directory if not provided.

  • -r recursive search (within all subdirectories)
  • -i ignore case
  • -n show line numbers with match
  • -v show lines that do not match
  • -l list file names with match
  • -c count lines with match for each file
  • --color=auto highlight matched text
  • --include="*.js" include only the files matching the pattern

References

© 2025 All rights reservedBuilt with Flowershow Cloud

Built with LogoFlowershow Cloud