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


Voltage Electric Tester Volt Detector Test Pen Non-Contact Sensor AC DC 12-1000V picture

Voltage Electric Tester Volt Detector Test Pen Non-Contact Sensor AC DC 12-1000V

$11.99



Drok Power Meter NEMA L6-30 (Complete Kit) 200-240v Voltmeter Outlet Box picture

Drok Power Meter NEMA L6-30 (Complete Kit) 200-240v Voltmeter Outlet Box

$41.69



Safeguard Compass voltage meter picture

Safeguard Compass voltage meter

$100.00



10PCS 0.28

10PCS 0.28" Mini DC 0-100V Voltage Tester Gauge Meter Digital LED Voltmeter

$11.98



4 USB 12V LED Car Boat Marine Voltmeter Voltage Meter Waterproof Battery Gauge picture

4 USB 12V LED Car Boat Marine Voltmeter Voltage Meter Waterproof Battery Gauge

$7.99



12V Digital LED Display Voltmeter Voltage Gauge Panel Meter For Car Motorcycle picture

12V Digital LED Display Voltmeter Voltage Gauge Panel Meter For Car Motorcycle

$7.49



12V-24V Car Marine Motorcycle LED Digital Voltmeter Voltage Meter Battery Gauge picture

12V-24V Car Marine Motorcycle LED Digital Voltmeter Voltage Meter Battery Gauge

$8.75



12V Digital LED Display Voltmeter Voltage Gauge Panel Meter Car Motorcycle  picture

12V Digital LED Display Voltmeter Voltage Gauge Panel Meter Car Motorcycle

$6.99



HRM-10 Voltage Internal Resistance Battery Tester, Milliohmmeter 100V 200Ω, Car picture

HRM-10 Voltage Internal Resistance Battery Tester, Milliohmmeter 100V 200Ω, Car

$80.68



Wireless Voltmeter Ampere Meter DC 120V 100A Battery Tester Remaining Capacity picture

Wireless Voltmeter Ampere Meter DC 120V 100A Battery Tester Remaining Capacity

$39.50



Powered by WordPress. Designed by WooThemes