The UNIX and Linux Forums  

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



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-30-2006
ananthmm ananthmm is offline
Registered User
 

Join Date: Aug 2006
Posts: 3
how to grep for a word and display only the word

Hi,

When we "grep" for a word in a file, it returns the lines containing the word that we searched for. Is there a way to display only the words and not the entire line containing them.

Thanks

Ananth
Reply With Quote
Forum Sponsor