>> and i just realized that since you don't really care about the data, a >> much quicker answer is: >> >> grep -c '^$' > > Now that's slick! Never would have occurred to me. > > Much grasses for the lessons, btw, that flavor may have a fencepost error if your data doesn't guarantee a trailing blank line on the file.