[Swift-commit] r5573 - SwiftApps/SciColSim
wilde at ci.uchicago.edu
wilde at ci.uchicago.edu
Thu Feb 9 16:50:16 CST 2012
Author: wilde
Date: 2012-02-09 16:50:15 -0600 (Thu, 09 Feb 2012)
New Revision: 5573
Modified:
SwiftApps/SciColSim/sumloss.sh
Log:
replaced usr/bin/env with simple invocation of awk viat PATH
Modified: SwiftApps/SciColSim/sumloss.sh
===================================================================
--- SwiftApps/SciColSim/sumloss.sh 2012-02-09 22:30:17 UTC (rev 5572)
+++ SwiftApps/SciColSim/sumloss.sh 2012-02-09 22:50:15 UTC (rev 5573)
@@ -1,5 +1,7 @@
-#! /usr/bin/env awk -f
+#! /bin/sh
+awk '
+
BEGIN { n = 0; loss = 0; }
{
@@ -17,7 +19,7 @@
sdev = 2.0 * sqrt(x)
printf "loss sdev\n"
printf "%f %f\n", loss, sdev
-}
+} ' $*
# the awk script above implements this c++ logic from optimizer.cpp:
More information about the Swift-commit
mailing list