Remove the same part of many filenames via command line
I have multiple files with same suffix and need to remove the suffix.
I have multiple files with same suffix and need to remove the suffix.
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”