Re: Globbing with scp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Todd Zullinger wrote:
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' .



scp -r user@host:~/.emacs* .

This copied over all my emacs related stuff from the remote machine to my present working directory without any hicups. The directory structures were also preserved, and I didn't need to escape the '*'.

--
Suvayu

Open source is the future. It sets us free.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux