get rid of files and directories with spaces in them
Mark Knoop
mark at opus11.net
Sat Jul 21 16:04:41 UTC 2007
Vivek J. Patankar wrote:
> Scott Berry wrote:
>> How does one get rid of files and directories with spaces in them? I
>> tried rm and it doesn't want to remove the files or folders?
>
> I have a script that I use to rename all files with names in spaces in a
> folder. It replaces the spaces with underscores. I don't remember where
> I got it and it might not be of much help in your case, but someone else
> might find it useful.
rename ' ' _ *
(Although that only replaces the first space in the filename...)
--
Mark Knoop
More information about the fedora-list
mailing list