To emulate what perl's -i switch does, first rename each file with an extension like .orig, open that new file for reading, and write output to the original filename.
In reply to Re^2: Searching and Replacing file content within directory
by mjscott2702
in thread Searching and Replacing file content within directory
by King0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |