[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Finding files not present (challenge to your intelligence)



On Wed, 26 Mar 1997 16:39:39 +0100 Heiko Schlittermann 
(heiko@os.inf.tu-dresden.de) wrote:

> 	find -type f -printf "%f\n" | sort > files.exist
> 	sort < searchlist > files.search
> 	comm -1 -3 files.exist files.search

Which can be abbreviated with zsh to:

  comm -1 -3 <(sort searchlist) <(find -type f -printf "%f\n" | sort)

Hop ! No more cluttering, no more intermediate files.
I love zsh's redirection !

Phil.



Reply to: