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


BJ200 3-30MHz CB Radio Power Amplifier Amp Module FM AM CW SSB 50W 100W 150W picture

BJ200 3-30MHz CB Radio Power Amplifier Amp Module FM AM CW SSB 50W 100W 150W

$95.00



Scott Voice Amp SCBA Amplifier 804564-01 for AV2000 and AV3000 +Bracket *TESTED* picture

Scott Voice Amp SCBA Amplifier 804564-01 for AV2000 and AV3000 +Bracket *TESTED*

$20.00



Large Big Aluminum Heat sink Radiator for Led High Power Amplifier picture

Large Big Aluminum Heat sink Radiator for Led High Power Amplifier

$13.64



Yaskawa JZNCTU39 Servo Amplifier Drive Unit Power Supply For CNC 220V 50A picture

Yaskawa JZNCTU39 Servo Amplifier Drive Unit Power Supply For CNC 220V 50A

$149.99



Yaskawa JZNCTU39 Servo Amplifier Drive Unit Power Supply For CNC 220V 50A picture

Yaskawa JZNCTU39 Servo Amplifier Drive Unit Power Supply For CNC 220V 50A

$149.99



Operational Amplifier OP AMP Tester For Single Dual opamp TL071 TL072 TL081/082 picture

Operational Amplifier OP AMP Tester For Single Dual opamp TL071 TL072 TL081/082

$11.13



AK2515 VFD Audio Level VU Meter Amplifier Indicator AGC HIFI LED Music Spectrum  picture

AK2515 VFD Audio Level VU Meter Amplifier Indicator AGC HIFI LED Music Spectrum

$48.00



RF Wideband Amplifier Low-noise LNA Broadband Module Gain 32dB 0.1-2000MH​z US picture

RF Wideband Amplifier Low-noise LNA Broadband Module Gain 32dB 0.1-2000MH​z US

$9.39



STK0050  Power Amplifier + Heat Sink Compound Brand New picture

STK0050 Power Amplifier + Heat Sink Compound Brand New

$18.85



Clearsounds WIL95 Ultraclear Portable Telephone Amplifier for Corded Digital and picture

Clearsounds WIL95 Ultraclear Portable Telephone Amplifier for Corded Digital and

$69.97



Powered by WordPress. Designed by WooThemes