Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: a non-recursive find option Summary: use cpio Keywords: find Message-ID: <1990Feb27.181855.6835@virtech.uucp> Date: 27 Feb 90 18:18:55 GMT References: <115@comspec.UUCP> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Distribution: na Organization: Virtual Technologies Inc., Sterling VA Lines: 21 In article <115@comspec.UUCP> rick@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 | +-----------------------------------------------------------------------+