Skip to content

Instantly share code, notes, and snippets.

@bsenduran
Created June 23, 2014 06:26
Show Gist options
  • Save bsenduran/57506868c4959693629a to your computer and use it in GitHub Desktop.
Save bsenduran/57506868c4959693629a to your computer and use it in GitHub Desktop.
*
When scp ing a file which has white spaces in its name have to escape twice,
because it's escaped locally and then on the remote end.
There are a couple of options you can do (in bash):
scp user@example.com:"'web/tmp/Master File 18 10 13.xls'" .
scp user@example.com:"web/tmp/Master\ File\ 18\ 10\ 13.xls" .
scp user@example.com:web/tmp/Master\\\ File\\\ 18\\\ 10\\\ 13.xls .
(http://stackoverflow.com/a/20364170)
--------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment