Re: [SLUG] handy way to merge txt files?

2001-10-05 Thread Herbert Xu
Andrew Bennetts <[EMAIL PROTECTED]> wrote: > > If you don't mind reordering the lines: > cat file1 file2 | sort | uniq > file3 Which can be rewritten as sort -u file1 file2 > file3 -- Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home

Re: [SLUG] handy way to merge txt files?

2001-10-05 Thread Greg Wright
*** REPLY SEPARATOR *** On 5/10/2001 at 4:02 PM cpaul [EMAIL PROTECTED] [gregausit/slug] wrote: >hi - i have two plaintext files > >i want to merge them, discarding duplicate lines > >is there an easy way ? > cat and sort come to mind, read the man page on sort, IIRC -u is th

Re: [SLUG] handy way to merge txt files?

2001-10-05 Thread lukekendall
On 5 Oct, Andrew Bennetts wrote: > On Fri, Oct 05, 2001 at 04:02:16PM -1000, cpaul wrote: > > > > hi - i have two plaintext files > > > > i want to merge them, discarding duplicate lines > > > > is there an easy way ? You really need to say what you mean by merging the two files. If you want

Re: [SLUG] handy way to merge txt files?

2001-10-04 Thread Andrew Bennetts
On Fri, Oct 05, 2001 at 04:02:16PM -1000, cpaul wrote: > > hi - i have two plaintext files > > i want to merge them, discarding duplicate lines > > is there an easy way ? If you don't mind reordering the lines: cat file1 file2 | sort | uniq > file3 -Andrew. -- SLUG - Sydney Linux User Grou

Re: [SLUG] handy way to merge txt files?

2001-10-04 Thread Broun, Bevan
on Fri, Oct 05, 2001 at 04:02:16PM -1000, cpaul <[EMAIL PROTECTED]> wrote: > > hi - i have two plaintext files > > i want to merge them, discarding duplicate lines > > is there an easy way ? cat file1 file2 | sort | uniq BB -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.a

[SLUG] handy way to merge txt files?

2001-10-04 Thread cpaul
hi - i have two plaintext files i want to merge them, discarding duplicate lines is there an easy way ? thx! chris paul -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug