On Fri, Jul 16, 2004 at 12:23:41AM -0700, Alfred Perlstein wrote: > I'm up too late, this doesn't work because find returns > success whenever it successfully runs thought everything. > > Perhaps the primary change to just "-exit" which would > make find exit successfully, and if the primary is never > encountered (ie. our find logic never hits it) find would > exit with a non-zero exit status? > > Ideas? Better ideas? > > The reason I want this is to avoid extracting a tarball > over a directory that has files in it that are newer than > the tarball. > > Neither tar nor find seem to make this easy... > [ `find . -type f -newer ../src.tar.gz |head -1 |wc -l` -eq 0 ] && echo hi
Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer
pgptKBBVmt0E5.pgp
Description: PGP signature