think tank forum

technology » basic unix-like help

lucas's avatar
13 years ago
link
lucas
i ❤ demo
lucas@atlas$ scp www:"National, The - Conversation 16.mp4" ./
Enter passphrase for key '/home/lucas/.ssh/id_rsa':
scp: National,: No such file or directory
scp: The: No such file or directory
scp: -: No such file or directory
scp: Conversation: No such file or directory
scp: 16.mp4: No such file or directory
lucas@atlas$ scp www:National,\ The\ -\ Conversation\ 16.mp4 ./
Enter passphrase for key '/home/lucas/.ssh/id_rsa':
scp: National,: No such file or directory
scp: The: No such file or directory
scp: -: No such file or directory
scp: Conversation: No such file or directory
scp: 16.mp4: No such file or directory
lucas@atlas$


solution? i don't like mine:

lucas@www:~$ mv "National, The - Conversation 16.mp4" National,_The_-_Conversation_16.mp4
...
lucas@atlas$ scp www:National,_The_-_Conversation_16.mp4 ./
Enter passphrase for key '/home/lucas/.ssh/id_rsa':
National,_The_-_Conversation_16.mp4             4% 7600KB 688.9KB/s   03:52 ETA
phi_'s avatar
13 years ago
link
phi_
... and let the Earth be silent after ye.
scp "www:National...." ?
bluet's avatar
13 years ago
r2, link
bluet
Combine both techniques:

$ ssh atlas touch "a\ b"
$ scp atlas:"a\ b" .
a b                       100%    0     0.0KB/s   00:00
$
lucas's avatar
13 years ago
link
lucas
i ❤ demo
what about ""a b"" ? does that work? :o
andre's avatar
13 years ago
r1, link
andre
no, but

"'a b'"


does :)
lucas's avatar
13 years ago
link
lucas
i ❤ demo
oh. yeah, that makes more sense.