Text File Commands

From rbachwiki
Revision as of 15:33, 27 April 2022 by Bacchas (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Search multiple files for text, then replace it in all returned files

find . -type f -name "*.html" -exec sed -i 's/thommack\*//g' {} +
find . -type f -name "11n2.conf" -exec sed -i 's/rb444/11n2/g' {} +

Bash menu- Home