bedtime question : xargs
Christer Ekholm
che at chrekh.se
Fri Apr 24 12:56:39 PDT 2009
Vu Pham <vu at sivell.com> writes:
> # find . -name "*.rpm" | xargs scp ??? root at remoteserver:
>
> How can I make each of the line to be set into the ??? of scp ?
> I do not care if the directory tree is created or not on the remote
> server
If the list of filenames is not too long, you could just print them
space-separated, and give that to scp, like this:
scp `find . -name "*.rpm" -printf "%p "` root at remoteserver
--
Christer
More information about the Linux-users
mailing list