Re: Matching repeated lines.

2004-10-06 Thread Gavin Henry
Paul Johnson said: > On Wed, Oct 06, 2004 at 01:42:43PM +0100, Gavin Henry wrote: > >> I want to read in a file and print repeated lines like: >> >> yum >> yum >> >> or >> >> xorg-x11 >> xorg-x11 >> >> >> What's the best way to do this? A RE or a module from CPAN? > > uniq -d > > Or, if you aren't

Re: Matching repeated lines.

2004-10-06 Thread Paul Johnson
On Wed, Oct 06, 2004 at 01:42:43PM +0100, Gavin Henry wrote: > I want to read in a file and print repeated lines like: > > yum > yum > > or > > xorg-x11 > xorg-x11 > > > What's the best way to do this? A RE or a module from CPAN? uniq -d Or, if you aren't on a system where that is available

Matching repeated lines.

2004-10-06 Thread Gavin Henry
Sorry to post again on a new thread, but I think I need to clear my basci problem up. I want to read in a file and print repeated lines like: yum yum or xorg-x11 xorg-x11 What's the best way to do this? A RE or a module from CPAN? -- Just getting into the best language ever... Fancy a [EMA