Calculate the MD5 of INPUT files in bulk.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 line
404B

  1. task MD5 {
  2. Array[File] INPUT
  3. String docker
  4. String cluster_config
  5. String disk_size
  6. command <<<
  7. for file in ${sep=" " INPUT}
  8. do
  9. md5sum ${file} > ${file}.md5
  10. done
  11. cat `ls | grep .md5$` > OUTPUT.md5
  12. >>>
  13. runtime {
  14. docker: docker
  15. cluster: cluster_config
  16. systemDisk: "cloud_ssd 40"
  17. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  18. }
  19. output {
  20. File MD5 = "OUTPUT.md5"
  21. }
  22. }