From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 11:15:41 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1DD916A4CE for ; Tue, 20 Jan 2004 11:15:41 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id A429843D5C for ; Tue, 20 Jan 2004 11:15:39 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 25647 invoked from network); 20 Jan 2004 19:15:17 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 20 Jan 2004 19:15:17 -0000 Date: Tue, 20 Jan 2004 21:16:44 +0200 From: Ion-Mihai Tetcu To: Charles Swiger 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> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: grepping distinct lines from many text files ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2004 19:15:41 -0000 On Tue, 20 Jan 2004 14:02:54 -0500 Charles Swiger 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