[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: escaping, bash



Hugh Saunders wrote:
hugh@nomessin:~$ scp hugh@wacka.mjr.org:~/grant\ letter.doc ~/
hugh@mjr.org's password:
scp: /home/hugh/grant: No such file or directory
scp: letter.doc: No such file or directory

hugh@wacka:~$ du -h grant\ letter.doc
48k     grant letter.doc


so its obvious what went wrong -i only mean to request one file. How do specify the file correctly?

[for now i shall rename it then copy it but would be good to know for
future reference]

thanks,


hugh@nomessin:~$ scp 'hugh@wacka.mjr.org:~/grant\ letter.doc' ~/
hugh@nomessin:~$ scp hugh@wacka.mjr.org:~/grant\\\ letter.doc ~/
hugh@nomessin:~$ scp hugh@wacka.mjr.org:~/grant?letter.doc ~/

Though the last one has the potential to grap more than one file...



Reply to: