The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Count the number of occurence of perticular word from file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Count the number of occurence of perticular word from file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
05-25-2007
blowtorch
Supporter
Join Date: Dec 2004
Location: Singapore
Posts: 2,332
The 'less' command is used to view a file. Use grep to search for a particular word in a file. You can use this to count the number of occurrences too, just check the man page for the exact switch.
blowtorch
View Public Profile
Find all posts by blowtorch