Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!decwrl!nic.hookup.net!news.kei.com!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!geraldo.cc.utexas.edu!sylvester.cc.utexas.edu!not-for-mail From: vax@sylvester.cc.utexas.edu (Vax) Newsgroups: comp.os.386bsd.questions Subject: How to find identical lines in multiple files? Date: 31 Jan 1994 03:04:51 -0600 Organization: The University of Texas - Austin Lines: 15 Message-ID: <2iihjj$52p@sylvester.cc.utexas.edu> NNTP-Posting-Host: sylvester.cc.utexas.edu I just posted this to c.u.q and didn't get a reply. What is the best way to find identical lines in two or more files? It is acceptable to sort the files first. Surely there is some option to diff, cmp, or grep to do this! Isn't there? (I was unable to find any.) I have read the c.u.q. FAQ, et. al., and have had no luck with other routes. Thanks. -- Protect our endangered bandwidth - reply by email. NO BIG SIGS! VaX#n8 vax@ccwf.cc.utexas.edu - Don't blame me if the finger daemon is down