How can I replace a particular term in multiple files in Linux?
For instance, I have a number of files in my directory:
file1.txt
file2.txt
file3.txt
And I need to find a word “searchword” and replace it with “replaceword”.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
With bash 4.0, you can do recursive search for files
Or with GNU find