The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
grep count across multiple files
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
grep count across multiple files
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
05-15-2008
era
Herder of Useless Cats
Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,063
That counts the number of files with PASSED in them, I was under the impression that the number of lines was the interesting number (there could be more than one per file).
Second drl's suggestion;
Code:
cat files | grep -c PASSED
era
View Public Profile
Visit era's homepage!
Find all posts by era