grepping distinct lines from many text files ?
Ion-Mihai Tetcu
itetcu at apropo.ro
Tue Jan 20 11:15:41 PST 2004
On Tue, 20 Jan 2004 14:02:54 -0500
Charles Swiger <cswiger at 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
More information about the freebsd-questions
mailing list