4
votes
2answers
1k views

How can I scp when path and / or filename to copy has spaces?

I have in a remote remote_host a file like this: \home\user\path with spaces\filename with spaces.ext And I want to scp it to current dir .. How can I do that? Thanks!
2
votes
1answer
4k views

Handle filename with spaces inside Bash-script

In my Bash-script i have to handle filenames with spaces. These are the important lines inside my script: mp3file="/media/d/Music/zz_Hardcore/Sampler/Punk-O-Rama\ Vol.5\ \[MP3PRO\]/01\ -\ Nofx\ -\ ...
10
votes
8answers
11k views

Making BASH script `for` handle filenames with spaces (or workaround)

Whilst I have been using BASH for several years, my experience with BASH scripting is relatively limited. My code is as below. It should grab the entire directory structure from within the current ...
48
votes
5answers
15k views

What technical reasons exist for not using space characters in file names?

Somebody I know expressed irritation today regarding those of us who tend not to use spaces in our filenames, e.g. NamingThingsLikeThis.txt -- despite most modern operating systems supporting spaces ...