[Swift-commit] r8450 - www/Swift-T

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Mon May 4 13:37:38 CDT 2015


Author: ketan
Date: 2015-05-04 13:37:38 -0500 (Mon, 04 May 2015)
New Revision: 8450

Modified:
   www/Swift-T/turbine-sites.html
Log:
simplify example

Modified: www/Swift-T/turbine-sites.html
===================================================================
--- www/Swift-T/turbine-sites.html	2015-05-04 16:33:46 UTC (rev 8449)
+++ www/Swift-T/turbine-sites.html	2015-05-04 18:37:38 UTC (rev 8450)
@@ -2490,21 +2490,19 @@
 <pre><code>import files;
 import string;
 
-app (file out) cat (file inputs[]) {
-  "/bin/cat" inputs @stdout=out
+app (file out) cat (file input) {
+  "/bin/cat" input @stdout=out
 }
 
 foreach i in [0:9]{
-  file joined<sprintf("joined%i.txt", i)> = cat(glob("*.txt"));
+  file joined<sprintf("joined%i.txt", i)> = cat(input_file("data.txt"));
 }</code></pre>
 </div></div>
 <div class="paragraph"><p>Save the above script as <code>catsn.swift</code>.</p></div>
-<div class="paragraph"><p>Prepare input files as:</p></div>
+<div class="paragraph"><p>Prepare input file as:</p></div>
 <div class="listingblock">
 <div class="content">
-<pre><code>echo "contents of a.txt">a.txt
-echo "contents of b.txt">b.txt
-echo "contents of c.txt">c.txt</code></pre>
+<pre><code>echo "contents of data.txt">data.txt</code></pre>
 </div></div>
 <div class="paragraph"><p>Set TURBINE_OUTPUT to current directory:</p></div>
 <div class="listingblock">
@@ -2663,7 +2661,7 @@
 <div id="footer">
 <div id="footer-text">
 Version 0.8.0<br />
-Last updated 2015-05-04 11:33:06 CDT
+Last updated 2015-05-04 13:37:00 CDT
 </div>
 </div>
 </body>




More information about the Swift-commit mailing list