Search and replace a string in multiple text files in Linux
You can use this following command to search and replace a string in multiple text files in Linux:
find ./ -type f -exec sed -i 's/"Click here for filters."/"Click here for filters or full text search."/g' {} \;
- Original string: "Click here for filters."
- New string: "Click here for filters or full text search."
find ./ -type f -exec sed -i 's/"Click here for filters."/"Click here for filters or full text search."/g' {} \;
Comments
Post a Comment