1 |
Am Mittwoch, den 16.04.2008, 15:06 +0100 schrieb ext Mick: |
2 |
|
3 |
> I was trying to scp a file which had spaces in its name; e.g. |
4 |
> |
5 |
> This\ is\ the\ name\ of\ it.txt |
6 |
> |
7 |
> But scp would fail each time saying that the name is ambiguous (or |
8 |
> something similar). I also tried enclosing the name in 'single', or |
9 |
> "double" quotes, but it wouldn't have any. |
10 |
> |
11 |
> What's the right way of doing this? |
12 |
> |
13 |
> Both boxen running gentoo and I was using bash shell. |
14 |
|
15 |
I tried it in my zsh, with TAB-completion (means: I typed "scp |
16 |
remote_host:~/Fil<tab>"), and it gives this: |
17 |
|
18 |
scp remote_host:~/File\\\ with\\\ blanks |
19 |
|
20 |
And, of course, it copies the file just fine :-) |
21 |
|
22 |
HTH... |
23 |
|
24 |
Dirk |
25 |
-- |
26 |
Dirk Heinrichs | Tel: +49 (0)162 234 3408 |
27 |
Configuration Manager | Fax: +49 (0)211 47068 111 |
28 |
Capgemini Deutschland | Mail: dirk.heinrichs@×××××××××.com |
29 |
Wanheimerstraße 68 | Web: http://www.capgemini.com |
30 |
D-40468 Düsseldorf | ICQ#: 110037733 |
31 |
GPG Public Key C2E467BB | Keyserver: www.keyserver.net |