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

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

 



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?

Quoting names with spaces works well.  So does use of the \ character to
escape the space.  Exact usage might vary depending on which shell
you're using.

The following examples should work well with bash:

	rm "filename with spaces"
        rm another\ file\ with\ spaces

When all else fails, wildcards can be your friends.

> Scott

-- 
Kevin J. Cummings
kjchome@xxxxxxx
cummings@xxxxxxxxxxxxxxxxxx
cummings@xxxxxxxxxxxxxxxxxxxxxxx
Registered Linux User #1232 (http://counter.li.org)


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

  Powered by Linux