Re: find -mtime -1 | xargs scp ... user@remote:/dest/path
--- will trillich <will@serensoft.com> wrote:
> quick question on xargs --
>
> how can you have xargs work with something like scp? the FINAL
> arg to scp needs to be the destination; is there a way?
>
> find . | xargs cmd
>
> does the same thing as
>
> cmd ./file1 ./file2 ./file3 ./file4
>
> but i need it to do something like
>
> cmd ./file1 ./file2 ./file3 ./file4 DESTPATH
>
<snip>
Hi Will,
try this, using
# find . -type f -print0 | xargs -0 -i cmd {} DESTPATH
hth,
Patrick.
--
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
Reply to: