↓ Skip to Main Content

Blackcat Software

Multiplatform Software, Hardware, Administration

Main Navigation

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

Tag: files

Remove the same part of many filenames via command line

By Dave Posted on 26-Dec-2018 Posted in Linux No Comments

I have multiple files with same suffix and need to remove the suffix.

Tagged with: batch, cut, files, Linux, multiple, mv, rename

Recursively search inside files for a string

By Dave Posted on 07-Apr-2015 Posted in Uncategorized No Comments

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”

Tagged with: files, find, grep, Recursive, search, string
© 2021 Blackcat Software | Powered by Responsive Theme

‹ › ×

    ‹ › ×