a non-recursive find option

Conor P. Cahill cpcahil at virtech.uucp
Wed Feb 28 05:18:55 AEST 1990


In article <115 at comspec.UUCP> rick at comspec.UUCP (Rick McCalla) writes:
>the command I am using is:
>     find /usr/spool/news/comp/binaries/ibm/pc -type f -mtime 0 \
>            -exec copy {} /u/archive/cmp.bin.ibm.pc \;

1st, your expire stuff should allow you to archive stuff to another
directory instead of throwing it away.

If you can't change the expire stuff, the following should do what
you want:

	cd /usr/spool/news/comp/binaries/ibm/pc
	ls | cpio -p /u/archive/cmp.bin.ibm.pc 2>/dev/null

and it will run lots faster. 

-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+



More information about the Comp.unix.questions mailing list