Re: Spaces in filenames?

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

 



On Wed, 20 Feb 2008, Hart Larry wrote:

I would think you would need to have quotes beginning before the first space, but really you might find a script to change those spaces to dashes.

You can use a \  to mean a space. That's
"\ "

And this command will change all spaces in file names to -...
(its recursivly too.)
find directory-destination -type f -exec rename 's/\ /-/g' '{}' +
And change -type f to -type d for directories.

Don't ask me how it works.
I don't know.

HTH,

--
Daniel Dalton

http://members.iinet.net.au/~ddalton/
d.dalton@xxxxxxxxxxxx

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]