find ./.netscape -name '*.htm*' -mtime -1 -print | 
 cpio -pdmuv /destination_directory

Do a man on cpio for all it's options, I know one is to ln rather than
cp, there may be a mv as well.

Otherwise

 $ find ./.netscape -name '*.htm*' -mtime -1 -print | 
   cpio -pdmuv /destination_directory
 $ [ $? -eq 0 ] && find ./.netscape -name '*.htm*' -mtime -1 -exec rm {} \;

This kind of question has come up a lot on this list, and all sorts of
solutions are offered including perl scripts and other strange techniques
but good old cpio never rates a mention. So what's the drum? Is cpio 
just out of flavour or does it have some sort of fatal flaw in the Linux
implementation?

Pete

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to