Date: Tue, 20 Jan 2004 14:02:54 -0500 From: Charles Swiger <cswiger@mac.com> To: Ion-Mihai Tetcu <itetcu@apropo.ro> Cc: freebsd-questions@freebsd.org Subject: Re: grepping distinct lines from many text files ? Message-ID: <4090DBB9-4B7B-11D8-8D97-003065ABFD92@mac.com> In-Reply-To: <20040120205621.05fc84da@it.buh.cameradicommercio.ro> References: <20040120205621.05fc84da@it.buh.cameradicommercio.ro>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4090DBB9-4B7B-11D8-8D97-003065ABFD92>