Tạ Bích Hạnh
Member
How do I find and replace multiple files in Linux?
Answer
Linux Command Line: Find & Replace in Multiple Files
Answer
Linux Command Line: Find & Replace in Multiple Files
- grep -rl: search recursively, and only print the files that contain “old_string”
- xargs: take the output of the grep command and make it the input of the next command (ie, the sed command)