RE: removing duplicate lines across files.

2008-01-04 Thread Siva Prasad
: Thursday, January 03, 2008 4:04 PM To: Perl Beginners Subject: Re: removing duplicate lines across files. Siva Prasad wrote: > > Hi Gurus, Hello, > I want to remove duplicate lines across files. > > Below is the detailed problem, > > > I have file1

Re: removing duplicate lines across files.

2008-01-03 Thread Rob Dixon
Siva Prasad wrote: I want to remove duplicate lines across files. Below is the detailed problem, I have file1 file2,file3,file4,file5, The lines in file1 are there in file2,file3,file4,file5 I want to remove all the lines which are there in file1 from file2,file3,file4,file5. Can anyb

Re: removing duplicate lines across files.

2008-01-03 Thread John W. Krahn
Siva Prasad wrote: Hi Gurus, Hello, I want to remove duplicate lines across files. Below is the detailed problem, I have file1 file2,file3,file4,file5, The lines in file1 are there in file2,file3,file4,file5 I want to remove all the lines which are there in file1 from file2,file3,file4,

removing duplicate lines across files.

2008-01-03 Thread Siva Prasad
Hi Gurus, I want to remove duplicate lines across files. Below is the detailed problem, I have file1 file2,file3,file4,file5, The lines in file1 are there in file2,file3,file4,file5 I want to remove all the lines which are there in file1 from file2,file3,file4,file5. Can

Re: removing duplicate lines

2003-12-10 Thread R. Joseph Newton
Andrew Gaffney wrote: > John W. Krahn wrote: > > Whenever you want unique values think "hash". > > Well, it would have been weird to have a hash with keys named 'NET USE F: > SKYLINE\\SKYLINEF\r\n'. No. It is not at all wierd to use hash for any of the puroses for which it is well-suited. A

Re: removing duplicate lines

2003-12-09 Thread James Edward Gray II
On Dec 9, 2003, at 8:33 PM, Andrew Gaffney wrote: John W. Krahn wrote: Andrew Gaffney wrote: I am writing a Perl script to automatically generate a netlogon.bat file for Samba whenever a user logs onto a domain. The only parameter that is passes to it is the username. My problem is that differen

Re: removing duplicate lines

2003-12-09 Thread Andrew Gaffney
John W. Krahn wrote: Andrew Gaffney wrote: I am writing a Perl script to automatically generate a netlogon.bat file for Samba whenever a user logs onto a domain. The only parameter that is passes to it is the username. My problem is that different groups get some of the same mappings. What I real

Re: removing duplicate lines

2003-12-09 Thread John W. Krahn
Andrew Gaffney wrote: > > I am writing a Perl script to automatically generate a netlogon.bat file for Samba > whenever a user logs onto a domain. The only parameter that is passes to it is the > username. My problem is that different groups get some of the same mappings. What I > really > need t

Re: removing duplicate lines

2003-12-09 Thread Rob Dixon
Andrew Gaffney wrote: > > Rob Dixon wrote: > > > > Andrew Gaffney wrote: > > > > > I am writing a Perl script to automatically generate a netlogon.bat file for > > > Samba > > > whenever a user logs onto a domain. The only parameter that is passes to it is > > > the > > > username. My problem is

Re: removing duplicate lines

2003-12-09 Thread Andrew Gaffney
Rob Dixon wrote: Andrew Gaffney wrote: I am writing a Perl script to automatically generate a netlogon.bat file for Samba whenever a user logs onto a domain. The only parameter that is passes to it is the username. My problem is that different groups get some of the same mappings. What I really n

Re: removing duplicate lines

2003-12-09 Thread Rob Dixon
Andrew Gaffney wrote: > > I am writing a Perl script to automatically generate a netlogon.bat file for Samba > whenever a user logs onto a domain. The only parameter that is passes to it is the > username. My problem is that different groups get some of the same mappings. What I > really > need to

removing duplicate lines

2003-12-09 Thread Andrew Gaffney
I am writing a Perl script to automatically generate a netlogon.bat file for Samba whenever a user logs onto a domain. The only parameter that is passes to it is the username. My problem is that different groups get some of the same mappings. What I really need to do is filter out duplicate line

Re: Removing duplicate lines.

2003-07-21 Thread John W. Krahn
Hi Jenda :-) Jenda Krynicky wrote: > > Is it safe to assume that all duplicates are together like this? If > so all you have to do is to > 1) read the file line by line > 2) only print the line you just read if it's different from the last > one > 3) remember the line >

RE: Removing duplicate lines.

2003-07-21 Thread jonathan . musto
ynicky [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 13:33 To: [EMAIL PROTECTED] Subject: Re: Removing duplicate lines. From: [EMAIL PROTECTED] > I have a text file which contains a list of companies: > > NORTH DOWN AND ARDS INSTITUTE > NOTTINGHAM HEALTH AUTHORITY > 1ST CONTACT GR

Re: Removing duplicate lines.

2003-07-21 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I have a text file which contains a list of companies: > > NORTH DOWN AND ARDS INSTITUTE > NOTTINGHAM HEALTH AUTHORITY > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 4D TELECOM & KINGSTON INMEDIA > A E COOK LTD > A E COOK

Re: Removing duplicate lines.

2003-07-21 Thread Janek Schleicher
Jonathan Musto wrote at Mon, 21 Jul 2003 13:11:10 +0100: > I have a text file which contains a list of companies: > > NORTH DOWN AND ARDS INSTITUTE > NOTTINGHAM HEALTH AUTHORITY > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 1ST CONTACT GROUP LTD > 4D TELECOM & KINGSTO

Removing duplicate lines.

2003-07-21 Thread jonathan . musto
I have a text file which contains a list of companies: NORTH DOWN AND ARDS INSTITUTE NOTTINGHAM HEALTH AUTHORITY 1ST CONTACT GROUP LTD 1ST CONTACT GROUP LTD 1ST CONTACT GROUP LTD 1ST CONTACT GROUP LTD 4D TELECOM & KINGSTON INMEDIA A E COOK LTD A E COOK LTD etc.. How can a write a simple p