User Tools

Site Tools


shell:scp

scp

Wildcard characters for scp in a zsh

When trying to copy all files from a certain location, you can use the *-wildcard. However, be aware to set everything in “, as scp will try to expand the filenames locally otherwise. So do:

scp "myserver:~/mydirectory/*.root" .

to copy all root-files in mydirectory on myserver to the current directory.

shell/scp.txt · Last modified: 2010/04/02 18:15 by decianm