Date: Tue, 20 Jan 2004 21:16:44 +0200 From: Ion-Mihai Tetcu <itetcu@apropo.ro> To: Charles Swiger <cswiger@mac.com> Cc: freebsd-questions@freebsd.org Subject: Re: grepping distinct lines from many text files ? Message-ID: <20040120211644.20c3795a@it.buh.cameradicommercio.ro> In-Reply-To: <4090DBB9-4B7B-11D8-8D97-003065ABFD92@mac.com> References: <20040120205621.05fc84da@it.buh.cameradicommercio.ro> <4090DBB9-4B7B-11D8-8D97-003065ABFD92@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Jan 2004 14:02:54 -0500 Charles Swiger <cswiger@mac.com> wrote: > On Jan 20, 2004, at 1:56 PM, Ion-Mihai Tetcu wrote: > > > > CUCU=`cat /path/do/dir/* | some_filer_program` > > > > and have in $CUCU the distinct lines from all the files. > > Try: > > CUCU=`cat /path/to/files/* | sort | uniq` Thanks, that is what I was looking for. I've did a apropos unique and didn't thought to do an apropos uniq :"> -- IOnut Unregistered ;) FreeBSD user
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040120211644.20c3795a>