summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-22 17:10:24 -0500
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2011-02-22 17:10:24 -0500
commit9cf757f31f18455dc342be342a048a3d9f489e28 (patch)
tree7feab625da59459d00fcbf6d385eb47d8dcf615b
parent8c2405d7a7d247371586ae64ae6280be9e5ea093 (diff)
warn if there are no files
-rwxr-xr-xshuffle-truncate-all9
1 files changed, 7 insertions, 2 deletions
diff --git a/shuffle-truncate-all b/shuffle-truncate-all
index cf1b1ff..5bc7f8c 100755
--- a/shuffle-truncate-all
+++ b/shuffle-truncate-all
@@ -12,7 +12,12 @@ EVENTS=`awk '{print $1}' $COUNTS`
12 12
13for E in $EVENTS 13for E in $EVENTS
14do 14do
15 CUTOFF=`grep "$E " $COUNTS | awk '{print $2}'` 15 CUTOFF=`egrep "^$E " $COUNTS | awk '{print $2}'`
16 FILES=`find "$DIR" -iname "*overhead=${E}.bin"` 16 FILES=`find "$DIR" -iname "*overhead=${E}.bin"`
17 shuffle_truncate.py -c $CUTOFF $FILES 17 if [ -z "$FILES" ]
18 then
19 echo "[EE] No files for $E."
20 else
21 shuffle_truncate.py -c $CUTOFF $FILES
22 fi
18done 23done