Here is how to deal with space(s) in a remote source file with SCP:
scp user@hostname:”‘/path/to/my file name/which has spaces’” /local/path
Double quote, apostrophe. It’s more likely than you think.
Tags: bash, linux, scp
This entry was posted
on Saturday, January 17th, 2009 at 11:27 am and is filed under Cincinnati 2600.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
Great tip! How does one use this with a wildcard? That is, I have a directory of stuff (let’s call them ‘shows’) that I’m moving from one box (transcoder) to another (HTPC). How do I copy a bunch of files that match a wildcard, but not a whole directory?