title: append output of rm -rf to a file
body: <p>I want to append the filename deleted from <code>rm -rf *.log</code> to another file, say <code>xyz.abc</code>. Is there a way to do that? </p>
  
  <p>It should append all the <code>.log</code> files to <code>xyz.abc</code>. Tried but failed, so asking here. </p>