Re: find and cp in one command...
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Thu, 10 Aug 2006 18:00:18 -0700
"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.
.
- Follow-Ups:
- Re: find and cp in one command...
- From: Robert Hicks
- Re: find and cp in one command...
- References:
- find and cp in one command...
- From: Robert Hicks
- find and cp in one command...
- Prev by Date: What language to admin with?
- Next by Date: Re: find and cp in one command...
- Previous by thread: find and cp in one command...
- Next by thread: Re: find and cp in one command...
- Index(es):