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.

31 lines
469B

  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. echo $i
  12. md5sum $i > $i.md5
  13. done
  14. cat `ls | grep .md5$` > OUTPUT.md5
  15. >>>
  16. runtime {
  17. docker: docker
  18. cluster: cluster_config
  19. systemDisk: "cloud_ssd 40"
  20. dataDisk: "cloud_ssd " + disk_size + " /cromwell_root/"
  21. }
  22. output {
  23. File MD5 = "OUTPUT.md5"
  24. }
  25. }