Re: find and cp in one command...



"Robert Hicks" <sigzero@xxxxxxxxx> writes:

find ./ -name "*" -mtime -1

I need to pipe that to cp to move it to /tmp/20060810LK78

mv `find . -name "*" -mtime -1` /tmp/20060810LK78

If this gives you "command line too long", then

find . -name "*" -mtime -1 | xargs -i mv {} /tmp/20060810LK78

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.