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


1PC New In Box Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13 Surplus picture

1PC New In Box Sealed AB 1747-M13 SER A SLC EEPROM Memory Module 1747M13 Surplus

$78.00



1747-M13/A ABoriginal packaging   SLC EEPROM Memory module 1747M13  Brand new GN picture

1747-M13/A ABoriginal packaging SLC EEPROM Memory module 1747M13 Brand new GN

$309.99



1PC USED   FX-EEPROM-4 picture

1PC USED FX-EEPROM-4

$23.93



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$16.90



SOP8 SOIC8 Test Clip for EEPROM 25CXX / 24CXX with CH341A 24 25 Series EEPROM picture

SOP8 SOIC8 Test Clip for EEPROM 25CXX / 24CXX with CH341A 24 25 Series EEPROM

$9.79



CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



USB Programmer Kit with SOP8 Clip EEPROM BIOS Flasher Programmer Kit P1O3 picture

USB Programmer Kit with SOP8 Clip EEPROM BIOS Flasher Programmer Kit P1O3

$13.99



SOIC8 SOP8 Test Clip Tool For EEPROM 93CXX/25CXX/24CXX in-circuit programming  picture

SOIC8 SOP8 Test Clip Tool For EEPROM 93CXX/25CXX/24CXX in-circuit programming

$8.44



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs US picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs US

$19.59



USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Flash + So picture

USB Programmer CH341A Series Burner Chip 24 EEPROM BIOS Writer 25 SPI Flash + So

$22.97



Powered by WordPress. Designed by WooThemes