text: user12238: I have received Illumina sequencing reads for 100 samples. I have 8 R1.fastq.gz and 8 R2.fastq.gz files for each sample in each subfolder. I want to run an MD5 check for all the fastq files in each subfolder.
  My folder structure looks like:
  /mydata/sequencing/clean
  /mydata/sequencing/clean/Sample1
  /mydata/sequencing/clean/Sample2
  ......
  /mydata/sequencing/clean/Sample100
  
  I am using the following code being on the /mydata/sequencing/clean directory.
  find . -type f -exec md5sum-lite {} \;
  
  This code is printing the md5 result on Terminal.
  How do I get these results printed to a .txt file? Besides, is there a more elegant way to do this MD5 check?
  Thank you.
  
  user3848: Small modification,
  find . -type f -exec md5sum-lite {} \; >> output.txt
  
  If you use > the output will almost certainly contain a single record.
  
original_text: 12238: <p>I have received Illumina sequencing reads for 100 samples. I have 8 <code>R1.fastq.gz</code> and 8 <code>R2.fastq.gz</code> files for each sample in each subfolder. I want to run an <code>MD5</code> check for all the <code>fastq</code> files in each subfolder.</p>
  <p>My folder structure looks like:</p>
  <pre><code>/mydata/sequencing/clean
  /mydata/sequencing/clean/Sample1
  /mydata/sequencing/clean/Sample2
  ......
  /mydata/sequencing/clean/Sample100
  </code></pre>
  <p>I am using the following code being on the <code>/mydata/sequencing/clean</code> directory.</p>
  <pre><code>find . -type f -exec md5sum-lite {} \;
  </code></pre>
  <p>This code is printing the md5 result on Terminal.</p>
  <p>How do I get these results printed to a <code>.txt</code> file? Besides, is there a more elegant way to do this MD5 check?</p>
  <p>Thank you.</p>
   3848: <p>Small modification,</p>
  <pre><code>find . -type f -exec md5sum-lite {} \; &gt;&gt; output.txt
  </code></pre>
  <p>If you use <code>&gt;</code> the output will almost certainly contain a single record.</p>
  