Re: get rid of files and directories with spaces in them

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

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux