↓ Skip to Main Content

Blackcat Software

Main Navigation

  • Home
  • What We Offer
  • Products We Support
  • Contact Us

Tag: grep

Recursively search inside files for a string

By Dave Posted on 07-Apr-2015 Posted in Uncategorized No Comments Tagged with files, find, grep, Recursive, search, string

Use grep! $ cd $ grep -rnw . -e “the string I’m looking for” Recursively search only in PHP and HTML files, but ignore java and object files $ grep –exclude=*.{java,o} –include=\*.{php,html} -rnw . -e “the string I’m looking for”

© 2025 Blackcat Software | Powered by Responsive Theme