Re: grepping distinct lines from many text files ?

2004-01-21 Thread parv
in message [EMAIL PROTECTED], wrote Charles Swiger thusly... 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` Better yet...

Re: grepping distinct lines from many text files ?

2004-01-20 Thread Chris Pressey
On Tue, 20 Jan 2004 20:56:21 +0200 Ion-Mihai Tetcu [EMAIL PROTECTED] wrote: Hi, I know I have done this before, but I don't remember how ;) I have a collection of text files in one directory, and each file can contain one or more lines of text, of which any of them could also be in

Re: grepping distinct lines from many text files ?

2004-01-20 Thread Charles Swiger
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 ___ [EMAIL PROTECTED] mailing list

Re: grepping distinct lines from many text files ?

2004-01-20 Thread Ion-Mihai Tetcu
On Tue, 20 Jan 2004 14:02:54 -0500 Charles Swiger [EMAIL PROTECTED] 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`