Morning tawarsd,
--- tawarsd tawarsd@indiatimes.com wrote:
hi friends, i am new user to linux. My friend gave me a small assignment. It was like this : he invoked Vi editor. edited a file. and saved it as "-doc" i.e. (minus)
and he told me remove this file. but i tried to remove it using rm -doc it was treating this -doc as options. So how can i remove this file.
<snip> To remove a file whose name starts with a �-�, for example �-foo�, use one of these commands:
rm -- -foo
rm ./-foo
Regards, Animesh.
hope all my friends will try to help me. -----shaileshIndiatimes Email now powered by APIC Advantage. Help! HelpClick on the image to chat with me -- http://mm.ilug-bom.org.in/mailman/listinfo/linuxers
__________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/