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


10pcs DB3 Diac Bilateral Trigger Diode  Thyristor DB-3 DO-35 USA Seller picture

10pcs DB3 Diac Bilateral Trigger Diode Thyristor DB-3 DO-35 USA Seller

$3.26



TS820-600T ST MICRO Thyristor SCR 600V 73A 3-Pin TO-220AB 10 PIECES picture

TS820-600T ST MICRO Thyristor SCR 600V 73A 3-Pin TO-220AB 10 PIECES

$12.80



Power Transistor Mosfet Thyristor and Voltage Regulator Assortment Kit 82 pcs... picture

Power Transistor Mosfet Thyristor and Voltage Regulator Assortment Kit 82 pcs...

$29.65



AC 110-220V 6000W SCR Motor Speed Controller Voltage Regulator Dimmer Thyristor picture

AC 110-220V 6000W SCR Motor Speed Controller Voltage Regulator Dimmer Thyristor

$12.48



70TPS12 Thyristor SCR 1200V 1400A 3SUPER-247, picture

70TPS12 Thyristor SCR 1200V 1400A 3SUPER-247,

$10.00



5x (5pcs) DB3 Diac Bilateral Trigger Diode Bidirectional Thyristor DB-3 DO-35 picture

5x (5pcs) DB3 Diac Bilateral Trigger Diode Bidirectional Thyristor DB-3 DO-35

$2.49



C106M Thyristor SCR 600V 20A 3 Pin To-225  ( LOT OF 10) picture

C106M Thyristor SCR 600V 20A 3 Pin To-225 ( LOT OF 10)

$4.99



BTA16-600 (BTA16-600C) Two-way Thyristor TRIAC 4 Pack picture

BTA16-600 (BTA16-600C) Two-way Thyristor TRIAC 4 Pack

$3.99



68A7206P12A  Thyristor picture

68A7206P12A Thyristor

$279.00



AVC Specialists RASTD074 Thyristor switch picture

AVC Specialists RASTD074 Thyristor switch

$249.95



Powered by WordPress. Designed by WooThemes