Spaces? In MY SCP?!

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: , ,

One Response to “Spaces? In MY SCP?!”

  1. Glenn says:

    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?

Leave a Reply