diff options
author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-22 17:10:24 -0500 |
---|---|---|
committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2011-02-22 17:10:24 -0500 |
commit | 9cf757f31f18455dc342be342a048a3d9f489e28 (patch) | |
tree | 7feab625da59459d00fcbf6d385eb47d8dcf615b | |
parent | 8c2405d7a7d247371586ae64ae6280be9e5ea093 (diff) |
warn if there are no files
-rwxr-xr-x | shuffle-truncate-all | 9 |
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 | ||
13 | for E in $EVENTS | 13 | for E in $EVENTS |
14 | do | 14 | do |
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 | ||
18 | done | 23 | done |