How can I generate multiple hashes in Mac terminal for multiple files?
Solution 1:
Command line shells can perform wildcard expansion or file globbing to solve this easily.
In your case:
md5 HuZhou_1_d1_Clean_Data_unaligned.fq.*.gz
The shell handles passing all file names and md5
calculates the sum for each of those files matching the pattern in the current directory.