[Swift-commit] r2308 - SwiftApps/adem-osg/bin
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Oct 20 21:17:06 CDT 2008
Author: houzx
Date: 2008-10-20 21:17:05 -0500 (Mon, 20 Oct 2008)
New Revision: 2308
Added:
SwiftApps/adem-osg/bin/filter
Log:
New script import
Added: SwiftApps/adem-osg/bin/filter
===================================================================
--- SwiftApps/adem-osg/bin/filter (rev 0)
+++ SwiftApps/adem-osg/bin/filter 2008-10-21 02:17:05 UTC (rev 2308)
@@ -0,0 +1,17 @@
+#/bin/bash
+#To filter the sites.xml or tc.data file
+loop=0
+
+#if [ X$Pattern = X ]; then
+# echo "Please input the grid site name as the parameter"
+# exit
+#fi
+while [ $# -ne 0 ]
+do
+ Pattern=$1
+ LineS=`cat $ADEM_HOME/bin/.swift-sites.xml | sed -n "/${Pattern}/=" 2>/dev/null`
+ LineE=`expr $LineS + 6`
+ cat $ADEM_HOME/bin/.swift-sites.xml | sed -n "${LineS},${LineE}p" 2>/dev/null
+ shift
+done
+
Property changes on: SwiftApps/adem-osg/bin/filter
___________________________________________________________________
Name: svn:executable
+
More information about the Swift-commit
mailing list