Re: find and cp in one command...
- From: "Robert Hicks" <sigzero@xxxxxxxxx>
- Date: 10 Aug 2006 18:43:15 -0700
Paul Pluzhnikov wrote:
"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.
Thanks! I can pipe some things but others throw me.
Robert
.
- Follow-Ups:
- Re: find and cp in one command...
- From: OldSchool
- Re: find and cp in one command...
- References:
- find and cp in one command...
- From: Robert Hicks
- Re: find and cp in one command...
- From: Paul Pluzhnikov
- find and cp in one command...
- Prev by Date: Re: find and cp in one command...
- Next by Date: Re: What language to admin with?
- Previous by thread: Re: find and cp in one command...
- Next by thread: Re: find and cp in one command...
- Index(es):
Relevant Pages
|
|