How to use SED to search and replace a string in multiple files in linux

You can use the SED linux command to search and replace a string within all files inside a directory:

This example replaces all occurrences of fast with slow in file names that end in .htm:

$ find ./* -name ‘*.htm*’ -type f -exec sed -i ‘s/fast/slow/g’ {} \;


ALL Original XBOX V1.0 V1.2 V 1.3 - V1.5 V1.6 Motherboard Capacitor Upgrade kit picture

ALL Original XBOX V1.0 V1.2 V 1.3 - V1.5 V1.6 Motherboard Capacitor Upgrade kit

$12.99



ALL Original XBOX V1.0 - V1.6 Motherboard Capacitor Repair kit / Clock Capacitor picture

ALL Original XBOX V1.0 - V1.6 Motherboard Capacitor Repair kit / Clock Capacitor

$17.99



Celltracks HS6637 Ver: 2.1 Industrial computer motherboard picture

Celltracks HS6637 Ver: 2.1 Industrial computer motherboard

$314.99



NORCONTROL NA1117.1 MOTHERBOARD II HA220853B/B/ picture

NORCONTROL NA1117.1 MOTHERBOARD II HA220853B/B/

$845.06



OMTech 40W CO2 Laser Engraver K40+ Motherboard for Lightburn & Rotary Axis Comp. picture

OMTech 40W CO2 Laser Engraver K40+ Motherboard for Lightburn & Rotary Axis Comp.

$155.99



40 12x16

40 12x16" Zip-Top Dou Yee Static Shield Bags

$21.94



25 10x12

25 10x12" Open-Top Dou Yee Static Shield Bags

$6.18



25 10x16

25 10x16" Open-Top Dou Yee Static Shield Bags

$8.16



Onity ADVANCE ANSI Motherboard for Guest Room Doors 10 pack picture

Onity ADVANCE ANSI Motherboard for Guest Room Doors 10 pack

$150.00



100x Anti-static Bags 12

100x Anti-static Bags 12"x 15" 2 Mil Large Pink Poly Bag Open Ended Motherboard

$25.99



Powered by WordPress. Designed by WooThemes