Search-and-Replace in Text Files

The sed command

Using a Perl one-line script

Examples:
sed "/love/s//amore//" my_story.txt > my_story_v2.txt
perl -i -p -e"s/love/amore/g" my_story.txt

Tasks:



Previous - Searching for Files

Next - Sending Email

Home