Deleting file beginning with '-' using rm
From: TiN (k_nitin_r_at_yahoo.co.in)
Date: 09/14/04
- Next message: TiN: "Deleting file beginning with '-' using rm"
- Previous message: Boris Savc: "Re: Cron question"
- Next in thread: Harry Phillips: "Re: Deleting file beginning with '-' using rm"
- Reply: Harry Phillips: "Re: Deleting file beginning with '-' using rm"
- Reply: Creature: "Re: Deleting file beginning with '-' using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 14 Sep 2004 00:57:41 -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: TiN: "Deleting file beginning with '-' using rm"
- Previous message: Boris Savc: "Re: Cron question"
- Next in thread: Harry Phillips: "Re: Deleting file beginning with '-' using rm"
- Reply: Harry Phillips: "Re: Deleting file beginning with '-' using rm"
- Reply: Creature: "Re: Deleting file beginning with '-' using rm"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|