The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
Remove Duplicate lines from File
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Remove Duplicate lines from File
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-30-2007
ilan
Registered User
Join Date: Jul 2007
Posts: 84
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
Last edited by ilan; 08-30-2007 at
11:49 AM
..
ilan
View Public Profile
Find all posts by ilan