don't you want to replace $crlf? $crlf separates lines in a plaintext file, so i don't know why we're discussing looping through lines with $replace and such :X

for generic 'replace text across a whole file' tasks i'd read the file into a binvar with /bread, then loop with $bfind and /bcopy. that would work even if you plan on involving $crlf in the replacement string


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde