in reply to Re: finding and deleting repeated lines in a file
in thread finding and deleting repeated lines in a file

Hi, thanks for that - it sort of works, but only seems to find the first repeat. For example if my file looks like: TRHF 0 KJKF 0 DFJE 0 DJFE 0 KSLR 0 SKJR 0 HGDF 0 TRHF 0 KJKF 0 it will remove the second 'TRHF 0' but stop there and leave all the other repeats. Any ideas? I'm quite new to perl so be gentle!
  • Comment on Re: Re: finding and deleting repeated lines in a file

Replies are listed 'Best First'.
Re: Re: Re: finding and deleting repeated lines in a file
by insensate (Hermit) on Jun 21, 2002 at 17:02 UTC
    Where are the newlines? Just out of curiosity...the example you posted above didn't have any...could you post a more accurate input example? Thanks,
    Jason