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 -->
#
2
(
permalink
)
05-07-2008
robotronic
Can I play with madness?
Join Date: Apr 2002
Location: Italy
Posts: 370
Code:
grep -c PASSED <files> | awk -F: '{ s+=$2 } END { print s }'
robotronic
View Public Profile
Find all posts by robotronic