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’ {} \;


K-Type Thermocouple Probe Digital Thermometer Steel Sensor Spiral Cable  picture

K-Type Thermocouple Probe Digital Thermometer Steel Sensor Spiral Cable

$13.49



110-240VAC PID REX-C100 Temperature Controller SSR-40A Thermocouple Heat Sink picture

110-240VAC PID REX-C100 Temperature Controller SSR-40A Thermocouple Heat Sink

$27.70



Milwaukee 49-77-2002 Thermocouple-K Type picture

Milwaukee 49-77-2002 Thermocouple-K Type

$19.99



OMEGA THERMOCOUPLE PROBE TJ36-CAIN-116U-12-CC 1/16X12

OMEGA THERMOCOUPLE PROBE TJ36-CAIN-116U-12-CC 1/16X12" type k USA SELLER

$35.20



6802 II Dual Channel K Type Digital Thermocouple Thermometer Measurement Gauge picture

6802 II Dual Channel K Type Digital Thermocouple Thermometer Measurement Gauge

$19.78



PROSTER K Type Thermocouple Thermometer J T E R N E 2 Channel Temperature Meter picture

PROSTER K Type Thermocouple Thermometer J T E R N E 2 Channel Temperature Meter

$20.95



110-240VAC PID REX-C100 Temperature Controller SSR-40A Thermocouple Heat Sink picture

110-240VAC PID REX-C100 Temperature Controller SSR-40A Thermocouple Heat Sink

$23.49



PID REX-C100 Temperature Controller SSR 40DA K Thermocouple Heat Sink Kit USA picture

PID REX-C100 Temperature Controller SSR 40DA K Thermocouple Heat Sink Kit USA

$23.99



72

72" Universal Snap Fit Gas Pilot Burner Thermocouple 1980-072

$18.19



Garland 4523506 60 Inch Thermocouple by Garland picture

Garland 4523506 60 Inch Thermocouple by Garland

$17.99



Powered by WordPress. Designed by WooThemes