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


Used & Tested ZIPPY P1S-2400V-R Server Device Module Power Supply picture

Used & Tested ZIPPY P1S-2400V-R Server Device Module Power Supply

$375.58



1pcs BRAND NEW ONES  Fuji server RYT751D5-VV2 picture

1pcs BRAND NEW ONES Fuji server RYT751D5-VV2

$348.05



Schneider Electric SXWAUTSVR10001 SmartX Controller, Automation Server, LonWorks picture

Schneider Electric SXWAUTSVR10001 SmartX Controller, Automation Server, LonWorks

$375.08



Used & Tested MOXA NPORT5232 2 Port RS422/485 Ethernet Device Server picture

Used & Tested MOXA NPORT5232 2 Port RS422/485 Ethernet Device Server

$235.00



Axis 89 Device Server 0260-001-01, with Power Supply picture

Axis 89 Device Server 0260-001-01, with Power Supply

$125.00



Server Books for Waitress - Leather Waiter Book Server Wallet with Zipper picture

Server Books for Waitress - Leather Waiter Book Server Wallet with Zipper

$8.84



Server Book with 2 Zipper Pockets Leather Server Books for Waitress picture

Server Book with 2 Zipper Pockets Leather Server Books for Waitress

$8.45



Carrier 8.5 Technician Tool Field Assistant USB-L i-Vu USB Link Rnet cable TKIT picture

Carrier 8.5 Technician Tool Field Assistant USB-L i-Vu USB Link Rnet cable TKIT

$198.00



NEW MOXA NPort 5232 V2.1.0 2-Ports Serial Device Networking Server picture

NEW MOXA NPort 5232 V2.1.0 2-Ports Serial Device Networking Server

$393.00



Powered by WordPress. Designed by WooThemes