The UNIX and Linux Forums
>
Top Forums
>
UNIX for Advanced & Expert Users
Duplicate lines in the file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Duplicate lines in the file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
05-18-2006
ranj@chn
Playing with Ubuntu Now!
Join Date: Oct 2005
Location: Chennai
Posts: 365
awk solution
awk '{a[$0]++;} END {for (i in a) {if (a[i] > 1) print i;} }' filename
ranj@chn
View Public Profile
Find all posts by ranj@chn
Find ranj@chn's past nominations received
Find ranj@chn's present nominations given