title: How to replace strings in a file and "save" it as another file
body: <p>I'm trying to replace a string in a bunch of *.txt files. I'm familiar with this command:</p>
  
  <pre><code>find "$folder" -type f -name '*.txt' -exec sed -i 's/REPLACEFROM/REPLACETO/g' {} \;
  </code></pre>
  
  <p>However, this (as per -i flag) replaces strings inplace.</p>
  
  <p>What I'd like to do is keep all original files intact and "save" the changed files as "file1-renamed.txt", "file2-renamed.txt", ...</p>
  
  <p>What's the fastest and most elegant way to do that? Maybe perl?</p>
  
  <p>I'm sure this is pretty basic, but it seems to hard for me. :)</p>
  
  <p>Thanks in advance for your help.</p>