Forum Moderators: bakedjake

Message Too Old, No Replies

hwo to delete file with ' in name. e.g. women's

tried but nothing works

         

walkman

8:46 pm on Jul 30, 2005 (gmt 0)



Hi,
how can I delete women's.php in linux?
I tried everything I know but nothing worked.

thanks,

bcc1234

8:48 pm on Jul 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



\'

danny

1:06 am on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You could also use "s around the name.

My preferred approach to this kind of problem is to type "rm women" and then hit tab to get the completion.

walkman

2:33 am on Jul 31, 2005 (gmt 0)



thanks guys,
tried rm women* and it prompted to delete. All fine now. Apparently it was women///'s.php, two more // than I thought ;)

mcavic

5:33 am on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about a file called --exclude?

Quotes, backslashes, and wildcards aren't working for me. I think I'll have to duplicate the directory tree that it's in (excluding that file), and rm -rf the old tree.

danny

12:11 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about a file called --exclude?

Try "rm ./--exclude"

mcavic

3:31 pm on Jul 31, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ah, perfect.

Thanks!