diff --git a/common.wdl b/common.wdl
index 73325bf4c726f0716b067e6ddc3f7f96b3cb5587..92fd586ce7a9e76572c334faf7e22c6430e910b2 100644
--- a/common.wdl
+++ b/common.wdl
@@ -158,6 +158,28 @@ task StringArrayMd5 {
     }
 }
 
+task TextToFile {
+
+    input {
+        String text
+        String outputFile = "out.txt"
+        String dockerImage = "debian@sha256:f05c05a218b7a4a5fe979045b1c8e2a9ec3524e5611ebfdd0ef5b8040f9008fa"
+    }
+
+    command <<<
+        echo $'~{text}' > ~{outputFile}
+    >>>
+
+    output {
+        File out = outputFile
+    }
+
+    runtime {
+        memory: "1G"
+        docker: dockerImage
+    }
+}
+
 task YamlToJson {
     input {
         File yaml