How can I delete a file with a minus sign in front of it?
ie. -file
All I get is "illegal option" errors when trying all my various attempts.
Thanks
Chris
ie. -file
All I get is "illegal option" errors when trying all my various attempts.
Thanks
Chris
>ie. -file
>All I get is "illegal option" errors when trying all my various attempts.
--
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
>>ie. -file
>>All I get is "illegal option" errors when trying all my various attempts.
>You read the FAQ rather than start the zillionth rehash of this thread in
>the past year.
>--
>GTE Internetworking, Powered by BBN, Burlington, MA
>*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
>Please DON'T copy followups to me -- I'll assume it wasn't posted to the
> ie. -file
look at 'man rm': (taken from IRIX system)
NOTES
A -- permits the user to mark explicitly the end of any command line
options, allowing rm to recognize filename arguments that begin with
a -.
Okay, all together now:Quote:>Well, when you use rm -file to remove a file. The rm command will think that
>the -file is an argument. try using
>rm '-file' to remove the file. Although I never try this
As Barry said: Read The FAQ!
--Ken Pizzini
Thank you. I feel much better now.
Try rm ./-file, which will actually work, unlike the above.
Chris Mattern
1. "Standard Journaled File System" vs "Large File Enabled Journaled File System"
Is there a way to find out, by a command, eg. lsfs -q, if a filesystem
is "Standard Journaled File System" or "Large File Enabled Journaled
File System"?
Arne S
2. More install problems, sigh.
3. How to Delete File with Leading "-" in Name?
5. Can't delete file name " | more " ?
6. Minicom 1.7.0 + XMODEM + > 255 blocks = display problems
7. Deleting file named "\377" (octal 377)?
9. Delete a file with name "*" - Need urgently help!
10. how to delete files named like "-002210"
11. how to delete the file name with "-" ??
12. Deleting a file named "-I"
13. How to delete a file named "-"