Hi Alex,

> >      $ grep -m1 ^ `find -type f | sort -f | uniq -Di`
>
> I'm a big fan of pipes and xargs(1).  I only use `` or $() when I
> _really_ need to.  I'd use:
>
> $ find -type f | sort -f | uniq -Di | xargs grep -m1 ^

I too use xargs(1).  But beware its defaults.  Unless I know the nature
of its input, I default to

    find -type f | sort -f | uniq -Di | xargs -rd\\n grep -m1 ^

-- 
Cheers, Ralph.

Reply via email to