[Swift-commit] r2365 - log-processing/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Wed Dec 10 10:33:00 CST 2008


Author: benc
Date: 2008-12-10 10:32:56 -0600 (Wed, 10 Dec 2008)
New Revision: 2365

Modified:
   log-processing/libexec/info-to-transitions
Log:
extract application base name from info file names to end up in its own column in .transitions and .execute files

Modified: log-processing/libexec/info-to-transitions
===================================================================
--- log-processing/libexec/info-to-transitions	2008-12-10 16:30:40 UTC (rev 2364)
+++ log-processing/libexec/info-to-transitions	2008-12-10 16:32:56 UTC (rev 2365)
@@ -5,6 +5,7 @@
 for infofn in $1/*-info; do
   jobid=$(echo $infofn | sed 's%^.*/\([^/]*\)-info$%\1%' )
   echo Processing info file for job $jobid in file $infofn >&2
+  jobbase=$(echo $jobid | sed 's/^\(.*\)-........$/\1/')
 # Progress  2007-10-29 10:05:50+0000  RM_JOBDIR
-  grep -E '^Progress ' $infofn | sed "s/^Progress *\([^ ]* [^ ]*\) *\([^ ]*\).*/\1 $jobid \2/"
+  grep -E '^Progress ' $infofn | sed "s/^Progress *\([^ ]* [^ ]*\) *\([^ ]*\).*/\1 $jobid \2 $jobbase/"
 done | iso-to-secs | swap-and-sort-and-swap




More information about the Swift-commit mailing list