[prev in list] [next in list] [prev in thread] [next in thread]
List: fedora-list
Subject: Re: Globbing with scp
From: Todd Zullinger <tmz () pobox ! com>
Date: 2009-05-26 23:15:25
Message-ID: 20090526231524.GJ4433 () inocybe ! localdomain
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Dave Feustel wrote:
> There appear to be missing concluding brackets in the output of man
> scp: (F9)
> =================
> NAME
> scp - secure copy (remote file copy program)
>
> SYNOPSIS
> scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
> ...
> [[user@]host1:]file1 ... [[user@]host2:]file2
>
> ==================
>
> The missing right brackets make me wonder how to transmit
> bunches of files without having to specify the password(s)
> multiple times.
Huh? The brackets are in matched pairs AFAICT.
> Is globbing possible? If so, could someone provide an example? So
> far none of my experiments attempting to transfer multiple files in
> a single scp command have worked.
It might help if you showed a little of what you tried. Globbing when
the files are on the localhost is easy:
$ scp *.diff remote:/tmp
Going in the other direction requires you to quote the glob characters
to prevent them from being expanded by your local shell:
$ scp remote:'/tmp/*.diff' .
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I could never recommend the use of drugs or alcohol to anyone, but
they've always worked for me.
-- Hunter S. Thompson
[Attachment #5 (application/pgp-signature)]
--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic