aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/prog/egrep.awk
diff options
context:
space:
mode:
Diffstat (limited to 'awklib/eg/prog/egrep.awk')
-rw-r--r--awklib/eg/prog/egrep.awk3
1 files changed, 2 insertions, 1 deletions
diff --git a/awklib/eg/prog/egrep.awk b/awklib/eg/prog/egrep.awk
index b34241f8..56d199c8 100644
--- a/awklib/eg/prog/egrep.awk
+++ b/awklib/eg/prog/egrep.awk
@@ -54,11 +54,12 @@ function beginfile(junk)
}
function endfile(file)
{
- if (! no_print && count_only)
+ if (! no_print && count_only) {
if (do_filenames)
print file ":" fcount
else
print fcount
+ }
total += fcount
}