Home > Community > How to run MD5 check for multiple fastq files in different subdirectories?
Upvote

24

Downvote
+ Bioinformatics
+ Biochemistry
+ Genome
+ Illumina
Posted by
Mohamed Dalati

How to run MD5 check for multiple fastq files in different subdirectories?

Dallas Hall  Follow

Small modification,

find . -type f -exec md5sum-lite {} \; >> output.txt

If you use > the output will almost certainly contain a single record.

More

Upvote

VOTE

Downvote
John Ilsley  Follow
Thank you for the prompt reply. Is there any other code that you know of for looping the md5 command over different subfolders?More
Upvote

VOTE

Downvote
Gregory A. Beamer  Follow
Yes of course ... there are loads of ways to do this. A bash script is good (separate question IMO). However, the > and >> will still be central. In terms of elegance, your one liner looks cool. BTW >> is very likely the solution because of the find approach. One liners are cool BTW.More
Upvote

VOTE

Downvote
Edward Rosenberg  Follow
Yeah. totally agreed.More
Upvote

VOTE

Downvote
Jeph Moorloy  Follow
Your welcome. Your second question (alternative code) is worth asking because of the variety of ways it can answered, e.g. a bash for loop, Python subprocessing, Perl one liner are the approaches I can think of.More
Upvote

VOTE

Downvote
Joe Belkin  Follow
Thank you very much.More
Upvote

VOTE

Downvote