From 68327fda24b852ec4daed02ad677c49da75c38aa Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 29 Jun 2021 11:04:54 +0530 Subject: doc: Document passing input into stdin. * doc/ccwl.skb (Tutorial)[Passing input into the standard input stream of a command]: New section. * doc/pass-stdin.scm, doc/pass-stdin.out: New files. --- doc/pass-stdin.scm | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 doc/pass-stdin.scm (limited to 'doc/pass-stdin.scm') diff --git a/doc/pass-stdin.scm b/doc/pass-stdin.scm new file mode 100644 index 0000000..3bdc70b --- /dev/null +++ b/doc/pass-stdin.scm @@ -0,0 +1,7 @@ +(define count-bytes + (command #:inputs (file #:type 'File) + #:run "wc" "-c" + #:stdin file)) + +(workflow ((file #:type File)) + (count-bytes #:file file)) -- cgit v1.2.3