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...

 CUCU=`sort /path/to/files/* | uniq`


...even (but do see sort(1))...


 CUCU=`sort -u /path/to/files/*`


  - Parv

-- 

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to