Not sure if this is the right forum, but can someone write me a script that will strip all 2nd spaces in a file name?
Example. If a file name is: Junk Mail.txt it will make it Junk Mail.txt (gets rid of the extra space. Everytime I transfer files to my linux box that have more than one consecutive space, it doesn't seem to open, transfer back, or anything. I'm not sure if there is an option in linux to fix this (running SuSe 10.1). But I would like to have a script to be able to do this to all files in a single directory.
Thanks!
Example. If a file name is: Junk Mail.txt it will make it Junk Mail.txt (gets rid of the extra space. Everytime I transfer files to my linux box that have more than one consecutive space, it doesn't seem to open, transfer back, or anything. I'm not sure if there is an option in linux to fix this (running SuSe 10.1). But I would like to have a script to be able to do this to all files in a single directory.
Thanks!