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 > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-30-2009
pranabrana's Avatar
pranabrana pranabrana is offline
Registered User
  
 

Join Date: Jun 2008
Location: Bangalore
Posts: 19
Quote:
Originally Posted by TonyFullerMalv View Post
If all you want is the count for apache then you could do:
Code:
$ tr "\011" "\012\012"<foo1 | tr -cd "[a-zA-z\012]" | grep "^apache$" | wc -l


Thanks !!! any simpler way ?