Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Find duplicate lines from the file and write it into new file.

by davidrw (Prior)
on Jan 04, 2007 at 13:51 UTC ( [id://592945]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Find duplicate lines from the file and write it into new file.
in thread Find duplicate lines from the file and write it into new file.

uniq can give you the dups directly:
sort foo.txt | uniq -d

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://592945]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2024-04-19 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found