Mailinglist Archive: opensuse (3644 mails)

< Previous Next >
Re: [SLE] Question for you all....
  • From: Keith Winston <kwinston@xxxxxxxxxxx>
  • Date: Mon, 25 Mar 2002 11:19:24 -0500
  • Message-id: <20020325111924.A2533@xxxxxxxxxxxxxxxxxxxx>
On Mon, Mar 25, 2002 at 10:47:30AM -0500, Michael Garabedian wrote:
....I have two password files that I want to merge is there a command
that will do it.

I have looked at diff, but I want to merge existing files to a new one.

Do you mean two /etc/passwd files? If so, you could do something like
this:

cat passwd1 passwd2 | sort -u > merged_passwd

This merges, sorts, and removes duplicates creating merged_passwd.

Best Regards,
Keith
--
LPIC-2, MSCE, N+
you may say I'm a dreamer, but I'm not the only one
Got spam? Get SPASTIC http://spastic.sourceforge.net

< Previous Next >
Follow Ups
References