Reputation: 461
I want to copy a file with spaces. For example "file 1.jpg". I want to do it from a putty-ssh session. cp doenst work because of the spaces. Is there another way to do it? Destination is a network share.
Thanks for your kindly assistance in advance.
Upvotes: 0
Views: 256
Reputation: 61885
cp
doesn't care about spaces: it is the shell that does, when it parses the command line parameters. An alternative program would have the exact same problem.
Use quotes or escape the spaces. For example;
$ cp "with spaces" nospaces
$ cp with\ spaces nospaces
Upvotes: 1