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.

30 line
420B

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