From owner-freebsd-questions@FreeBSD.ORG Tue Jan 20 11:03:01 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 2790C16A4CE for ; Tue, 20 Jan 2004 11:03:01 -0800 (PST) Received: from smtpout.mac.com (A17-250-248-83.apple.com [17.250.248.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BFC143D70 for ; Tue, 20 Jan 2004 11:02:57 -0800 (PST) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id i0KJ2t6I012528; Tue, 20 Jan 2004 11:02:55 -0800 (PST) Received: from [10.1.1.193] (nfw2.codefab.com [66.234.138.66]) (authenticated bits=0) by mac.com (Xserve/smtpin08/MantshX 3.0) with ESMTP id i0KJ2s2j029746; Tue, 20 Jan 2004 11:02:55 -0800 (PST) In-Reply-To: <20040120205621.05fc84da@it.buh.cameradicommercio.ro> References: <20040120205621.05fc84da@it.buh.cameradicommercio.ro> Mime-Version: 1.0 (Apple Message framework v609) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4090DBB9-4B7B-11D8-8D97-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Tue, 20 Jan 2004 14:02:54 -0500 To: Ion-Mihai Tetcu X-Mailer: Apple Mail (2.609) 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:03:01 -0000 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` -- -Chuck