Things You'll Need:
- Sed
-
Step 1
Open a terminal window. A terminal window will provide a command prompt where you will type the following commands.
-
Step 2
Navigate to the directory where your files that you want to edit are located.
-
Step 3
Type "sed 's/search/replace/g' *.txt" to replace all the instances of the string "search" with the string "replace" in "file.txt."
-
Step 4
Open the files in a text editor to check that the string has been replaced.
-
Step 5
Type "exit" to close the terminal session.












