Re: find usage question

2019-03-19 Thread Eric Blake
On 3/19/19 10:56 AM, Budi wrote: > How to instruct 'find' to perform -exec with its argument is from > -printf, not from the default find output. > tried so far in vain: > find ~+ -type d -printf '%p /d/data/%p_%s\n' -exec cp \{\} \ You can't. But what you can do is: find ... -printf 'cp %p /d/da

Re:

2019-03-19 Thread Budi
How to instruct 'find' to perform -exec with its argument is from -printf, not from the default find output. tried so far in vain: find ~+ -type d -printf '%p /d/data/%p_%s\n' -exec cp \{\} \ On 3/19/19, Budi wrote: > How do we make 'find' to perform -exec with its argument is from > -printf, not