The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
duplicate line in a text 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 line in a text file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
6
(
permalink
)
04-29-2008
summer_cherry
Registered User
Join Date: Jun 2007
Location: Beijing China
Posts: 1,089
Code:
awk '{ a[$0]++ } END{ for (i in a) if (a[i]=2) print i }' filename
summer_cherry
View Public Profile
Find all posts by summer_cherry
Find summer_cherry's past nominations received
Find summer_cherry's present nominations given