We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8122184 commit 75f3c49Copy full SHA for 75f3c49
Dockstore.wdl
@@ -0,0 +1,39 @@
1
+task ps {
2
+ command {
3
+ ps
4
+ }
5
+ output {
6
+ File procs = stdout()
7
8
+}
9
+
10
+task cgrep {
11
+ String pattern
12
+ File in_file
13
14
+ grep '${pattern}' ${in_file} | wc -l
15
16
17
+ Int count = read_int(stdout())
18
19
20
21
+task wc {
22
23
24
+ cat ${in_file} | wc -l
25
26
27
28
29
30
31
+workflow three_step {
32
+ call ps
33
+ call cgrep {
34
+ input: in_file=ps.procs
35
36
+ call wc {
37
38
39
0 commit comments