The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Pattern occurence in a file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Forum Rules
FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
Pattern occurence in a file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
12-09-2004
encrypted
Registered User
Join Date: Feb 2004
Location: Oslo, Norway
Posts: 218
Quote:
find the number of occurence of a specified pattern in a file
grep -c <pattern> <filename>
:-0
encrypted
View Public Profile
Find all posts by encrypted