get rid of files and directories with spaces in them

Vivek J. Patankar list307 at gmail.com
Sat Jul 21 15:54:50 UTC 2007


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.



-- 
Regards,
विवेक ज. पाटणकर (Vivek J. Patankar)

Registered Linux User #374218
Fedora release 7 (Moonshine)
Linux 2.6.22.1-27.fc7 x86_64
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stripspace.sh
Type: application/x-shellscript
Size: 939 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20070721/afa83591/attachment-0001.bin>


More information about the fedora-list mailing list