The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux
.
google unix.com



Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a count of a word within a file bd_joy Shell Programming and Scripting 9 07-14-2008 09:29 AM
Count strings on single line? cs03dmj Shell Programming and Scripting 6 05-22-2008 04:09 AM
Problem to search multiple strings sudhish Shell Programming and Scripting 2 10-25-2007 02:00 PM
To find the count of records from tables present inside a file. navojit dutta Shell Programming and Scripting 1 08-29-2007 11:04 AM
find multiple file types and tar manthasirisha Shell Programming and Scripting 9 03-21-2006 12:37 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 11-23-2007
salaathi's Avatar
salaathi salaathi is offline
Registered User
  
 

Join Date: Sep 2007
Location: Madurai
Posts: 20
Question To find multiple strings count in a file

I need to find the line count of multiple strings in a particular file. The strings are as follows:

bmgcc
bmgccftp
bsmsftp
bulkftp
cctuneftp
crbtftp
crmpos
cso
gujhr

I am doing manual grep for each of the string to find the line count. The command i am using right now is:
grep mark push.cdr.20071123.144325 | wc -l

Is there any better way of doing this.


Thanks
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0