Results 1 to 3 of 3

Thread: [SOLVED] scp and file names with spaces

  1. #1
    Join Date
    Apr 2006
    Beans
    132

    [SOLVED] scp and file names with spaces

    I read this wiki at https://help.ubuntu.com/community/SSHHowto
    and it says:
    quote: scp "New Document.odw" joe@laptop:"/home/joe/Summer 2005"

    It seems to me i could use scp to move files with empty spaces when i use " "

    but when i do this i get:

    joris@ubuntu:~$ scp joris@noob.no-ip.org:"/home/joris/Waco Brothers - ... To the last dead cowboy.tar.gz" .
    joris@noob.no-ip.org's password:
    scp: /home/joris/seeding/Waco: No such file or directory
    scp: Brothers: No such file or directory
    scp: -: No such file or directory
    scp: ...: No such file or directory
    scp: To: No such file or directory
    scp: the: No such file or directory
    scp: last: No such file or directory
    scp: dead: No such file or directory
    scp: cowboy.tar.gz: No such file or directory

    So clearly " " didn't help. Of course i can rename the .tar.gz file and then move the files. Or i can grab the files with nautilus, but both are a little extra work. So maybe someone has a solution to this small problem?
    Last edited by joris1977; June 28th, 2008 at 11:16 PM.

  2. #2
    Join Date
    Aug 2005
    Location
    Fargo, ND, USA
    Beans
    1,499
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: scp and file names with spaces

    Maybe try more quotes:

    Code:
    scp user@host:"'filename with spaces'" destination
    Help yourself: Search the community docs or try other resources.
    Quote Originally Posted by Henry Spencer
    Those who do not understand Unix are condemned to reinvent it, poorly.
    Let science use your computer when you aren't: Folding@Home.

  3. #3
    Join Date
    Apr 2006
    Beans
    132

    Re: scp and file names with spaces

    Yes!!! more quotes works

    jpkotta thank you very much for your fast and well informed reply.

    The ubuntu forums rock!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •