Globally replace text in several files: Difference between revisions
Content added Content deleted
m (→Version 1: changed comments and indentation, added whitespace, simplified the program, made the (hdr) eyecatcher better. -- ~~~~) |
m (→version 1: added a comment in the section header about filename specification. -- ~~~~) |
||
Line 651: | Line 651: | ||
===version 1=== |
===version 1=== |
||
This example works under "DOS" and/or "DOS" under Microsoft Windows. |
This example works under "DOS" and/or "DOS" under Microsoft Windows. |
||
<br><br>Filenames that contain blanks should have their blanks replaced with commas. |
|||
<lang rexx>/*REXX program to read the files specified and globally replace a string*/ |
<lang rexx>/*REXX program to read the files specified and globally replace a string*/ |
||
old = 'Goodbye London!' /*old text to be replaced. */ |
old = 'Goodbye London!' /*old text to be replaced. */ |