search/replace in many files
What is the best way to recursively search thru a directory structure and search and replace text in files?
For example, if I wanted to search thru all files with extension .txt and replace all occurences of the string "red" with "blue". |
And write it back out to the same file?
Code:
#!/bin/bash |
All times are GMT -5. The time now is 01:41 PM. |