1 |
On Wednesday 16 April 2008, 16:06, Mick wrote: |
2 |
> Hi All, |
3 |
> |
4 |
> I was trying to scp a file which had spaces in its name; e.g. |
5 |
> |
6 |
> This\ is\ the\ name\ of\ it.txt |
7 |
> |
8 |
> But scp would fail each time saying that the name is ambiguous (or |
9 |
> something similar). I also tried enclosing the name in 'single', or |
10 |
> "double" quotes, but it wouldn't have any. |
11 |
> |
12 |
> What's the right way of doing this? |
13 |
> |
14 |
> Both boxen running gentoo and I was using bash shell. |
15 |
|
16 |
Either |
17 |
|
18 |
$ scp 'This is the name of it.txt' user@remote:/dst/dir |
19 |
|
20 |
or |
21 |
|
22 |
$ scp user@remote:'/src/dir/This is the name of it.txt' /dst/dir |
23 |
|
24 |
depending on who's local and who's remote, should work. |
25 |
|
26 |
If neither does, post the actual command you were using. |
27 |
|
28 |
PS: Of course, if only that file begins with that characters, you can |
29 |
cheat and do |
30 |
|
31 |
$ scp user@remote:/src/dir/This* /dst/dir |
32 |
-- |
33 |
gentoo-user@l.g.o mailing list |