[Swift-commit] r3049 - SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Aug 5 16:14:16 CDT 2009


Author: andric
Date: 2009-08-05 16:14:16 -0500 (Wed, 05 Aug 2009)
New Revision: 3049

Added:
   SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/untar.py
Log:
this untars files from enormous output dir

Added: SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/untar.py
===================================================================
--- SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/untar.py	                        (rev 0)
+++ SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis/scripts/untar.py	2009-08-05 21:14:16 UTC (rev 3049)
@@ -0,0 +1,20 @@
+#!/usr/bin/python
+
+import os
+import commands
+import time
+
+
+baseDir = os.getenv("cnari")+"/swift/projects/andric/peakfit_pilots/PK2/turnpointAnalysis"
+os.chdir(baseDir+"/turning2_outrh")
+print os.getcwd()
+
+thefiles = os.listdir(os.getcwd())
+print len(thefiles)
+
+print time.ctime()
+for tt in thefiles:
+    os.system("tar -xzf "+tt)
+
+
+print time.ctime()




More information about the Swift-commit mailing list