Deleting file beginning with '-' using rm
From: TiN (k_nitin_r_at_yahoo.co.in)
Date: 09/14/04
- Next message: Essgee: "Which version is right for me?"
- Previous message: TiN: "Deleting file beginning with '-' using rm"
- Next in thread: Bit Twister: "Re: Deleting file beginning with '-' using rm"
- Reply: Bit Twister: "Re: Deleting file beginning with '-' using rm"
- Reply: Chris F.A. Johnson: "Re: Deleting file beginning with '-' using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 14 Sep 2004 00:57:42 -0700
Hi!
I accidentally created a file beginning with a '-' using gcc by
typing:
gcc -o -Wall prog1.c
I tried deleting it using 'rm', but to no means was I successful. I
tried using:
rm \-Wall
rm "-Wall"
Interpreted it as a command line switch
ls ?Wall
ls *Wall
I got a listing of all files in the current directory so didnt want
to try an 'rm'
I then used the GUI and it worked.
Anyway, what I'd like to know is how anyone would delete such a file
from the command line.
-TiN
- Next message: Essgee: "Which version is right for me?"
- Previous message: TiN: "Deleting file beginning with '-' using rm"
- Next in thread: Bit Twister: "Re: Deleting file beginning with '-' using rm"
- Reply: Bit Twister: "Re: Deleting file beginning with '-' using rm"
- Reply: Chris F.A. Johnson: "Re: Deleting file beginning with '-' using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|