Re: find and copy [Solved]

2013-09-17 Thread Chris Bannister
On Mon, Sep 16, 2013 at 12:19:39PM -0500, Craig L. wrote: On Fri, Sep 06, 2013 at 12:52:09PM +1000, Zenaan Harkness wrote: You should be bonza, fab, good to go :) [...] Well I don't know about bonza, and I thought fab was back in the sixties :).

Re: find and copy [Solved]

2013-09-16 Thread Craig L.
On Fri, Sep 06, 2013 at 12:52:09PM +1000, Zenaan Harkness wrote: Sorry, I forgot you needed renaming. So -I option to xargs may be useful for you. OK, try something like this: sh -c 'cp $0 /tmp/data.backup/${HOSTNAME}.${0:2}' {} \; find /tmp/var -mmin -60 -a -iname '*.sql' -type f \