[Discuss] Spaces_in_file_names.

David Frey dpfrey at shaw.ca
Sun Nov 26 10:58:34 PST 2006


On my computer (Debian unstable) there is a command called rename, so
there is no need to write another program to do the same thing.

Just run: $ rename 's/ /_/g' "filename with spaces"
to replace all spaces in the filename with underscores.

I think it's incorrect to do this though.  An underscore is not a space
and shouldn't be used as one.

David

On 11/26/2006, "blackcrow" <blackcrow at shaw.ca> wrote:

>Greetings all.
>
>I spend quite a bit of time renaming various files, substituting spaces in
>file names with underscores.  I wonder if there is a Linux "fix" for this?
>Perhaps a kernel_patch anyone knows about?   OR, are we destined to rename
>our received_files from the Window$ world forever?
>
>Any ideas or comments?
>
>Thanks,
>Chris W.
>_______________________________________________
>Discuss mailing list
>Discuss at vlug.org
>http://ladybug.vlug.org/cgi-bin/mailman/listinfo/discuss


More information about the Discuss mailing list