[Swift-commit] r6174 - SwiftApps/modis/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Tue Jan 29 11:42:41 CST 2013


Author: davidk
Date: 2013-01-29 11:42:41 -0600 (Tue, 29 Jan 2013)
New Revision: 6174

Modified:
   SwiftApps/modis/bin/assemble2.sh
Log:
Mac doesn't have seq, use bash {} and printf instead


Modified: SwiftApps/modis/bin/assemble2.sh
===================================================================
--- SwiftApps/modis/bin/assemble2.sh	2013-01-29 16:29:24 UTC (rev 6173)
+++ SwiftApps/modis/bin/assemble2.sh	2013-01-29 17:42:41 UTC (rev 6174)
@@ -13,8 +13,10 @@
 # we reverse this to form the final image
 
 cd $indir
-for h in `seq -w 00 35`; do
-  for v in `seq -w 00 17`; do
+for h in {0..10}; do
+  h=$( printf %02d $h );
+  for v in {0..17}; do
+    v=$( printf %02d $v );
     hv=h${h}v${v}
     vh=v${v}h${h}
     if [ ! -f $hv*png ]; then




More information about the Swift-commit mailing list