The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
grep command agathaeleanor Shell Programming and Scripting 2 01-19-2008 07:04 AM
how to exclude the GREP command from GREP yamsin789 UNIX for Advanced & Expert Users 2 10-04-2007 11:59 PM
grep -f command marwan UNIX for Dummies Questions & Answers 2 06-30-2007 12:15 PM
grep command debasis.mishra Shell Programming and Scripting 1 03-27-2006 10:53 PM
grep command-HELP?! BlueOysterCult UNIX for Dummies Questions & Answers 7 11-17-2003 07:46 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-25-2008
Registered User
 

Join Date: Jul 2008
Location: india
Posts: 9
regarding grep command

hi
i am sankar

pls help me

how to find out the how many times the given word is existed in a givein file using grep command
Reply With Quote
Forum Sponsor
  #2  
Old 07-25-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,328
You can use tr to transform the spaces in newlines and grep the result using the -c and -w options. Read the regarding manpages.

Regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0