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


Johnson Controls York Solution XTI-033X045-NAFA146A Air Make Up Handling Unit picture

Johnson Controls York Solution XTI-033X045-NAFA146A Air Make Up Handling Unit

$4500.00



Johnson Controls P-7210-1 Replacement High/Low Pressure Switch -NIB picture

Johnson Controls P-7210-1 Replacement High/Low Pressure Switch -NIB

$50.00



New JCI Johnson Controls DX-9100-8454 Metasys Controller picture

New JCI Johnson Controls DX-9100-8454 Metasys Controller

$60.00



Johnson Controls Metasys MS-NAE3510-2 Network Controller picture

Johnson Controls Metasys MS-NAE3510-2 Network Controller

$75.00



Johnson Controls SE-SPU1002-9 Simplicity SE Display Controller 25-2899-94 New picture

Johnson Controls SE-SPU1002-9 Simplicity SE Display Controller 25-2899-94 New

$139.95



Johnson Controls White NSB8BTC240-0  New - In Box picture

Johnson Controls White NSB8BTC240-0 New - In Box

$89.99



Johnson Controls SNE 22000-0  picture

Johnson Controls SNE 22000-0

$2150.54



Johnson Controls MAP1810 Gateway TL-MAP1810-0S picture

Johnson Controls MAP1810 Gateway TL-MAP1810-0S

$350.00



Johnson controls Map-1810 picture

Johnson controls Map-1810

$525.00



Johnson Controls M9104-AGS-2N Electric Motor Actuator New Open box picture

Johnson Controls M9104-AGS-2N Electric Motor Actuator New Open box

$80.00



Powered by WordPress. Designed by WooThemes