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 -->
  #4 (permalink)  
Old 08-30-2007
ilan ilan is offline
Registered User
 

Join Date: Jul 2007
Posts: 84
Quote:
Originally Posted by ilan View Post
you can use uniq.

can be like this:
for i in `more logreport | sort |uniq `; do echo "no.of time &i:`grep -c $i logreport`"; done

-ilan
stand corrected!!
My code works only for uniq words

-ilan

PS:not getting any idea on top of my head to serve your question!!
Reply With Quote