Complex (?) Unix Text Replace Command
- by Matrym
What's the command line equivalent of:
For every file that contains "AAA" within its contents, find "BBB" and replace it with "CCC"
Thus, the command would match and replace BBB in a file:
<html>
<head></head>
<body>
AAA
Hello world!
BBB
</body>
</html>
But Not in a file:
<html>
<head></head>
<body>
Don't match me!
BBB
</body>
</html>
Thanks in advance!