title: Possible to grep and modify/touch the file modification date?
body: <p>I am using the following to find all instances of a string in a number of files and delete the line where they are found.</p>
  
  <pre><code>find . -maxdepth 1 -xdev -type f -exec sed -i '/teststring/Id' {} \;
  </code></pre>
  
  <p>I don't want to change the date the file was modified because that impacts on the order that the files are shown in an unrelated application. So I was thinking I could grab the date before executing sed, then touch the file and replace the old modify date at the end of the command. I want to have it all in one command integrated with the above if possible.</p>