Rewind each file before writing matching content.