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
*** 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
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
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
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
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