Difference between revisions of "Text File Commands"

From rbachwiki
Jump to navigation Jump to search
(Created page with "== Search multiple files for text, then replace it in all returned files== find . -type f -name "*.html" -exec sed -i 's/thommack\*//g' {} + == Bash menu-Main_Page...")
 
 
Line 1: Line 1:
== Search multiple files for text, then replace it in all returned files==
== 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 "*.html" -exec sed -i 's/thommack\*//g' {} +
find . -type f -name "11n2.conf" -exec sed -i 's/rb444/11n2/g' {} +
==[[Bash| Bash menu]]-[[Main_Page| Home]]==
==[[Bash| Bash menu]]-[[Main_Page| Home]]==
[[Category:Bash]]
[[Category:Bash]]

Latest revision as of 15:33, 27 April 2022

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