> Why not make the script do the grep too? Something like: > > countgrep foo 2 *shrug*, that's more than I needed to solve a specific problem :-). And it's nice to be able to support grep options like -v, -F, -i, etc. in a simple way. Dan -- Dan Gohman, Cray Inc.