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

Attachment:
signature.asc (zipped)