How to remove -.o

How to remove -.o

am 06.12.2007 19:24:37 von James

Accidently generated a file named -.o via

echo | gcc -c -xc -

How to remove -.o?

TIA
James

Re: How to remove -.o

am 06.12.2007 19:41:07 von Steffen Schuler

On Thu, 06 Dec 2007 10:24:37 -0800, James wrote:

> Accidently generated a file named -.o via
>
> echo | gcc -c -xc -
>
> How to remove -.o?
>
> TIA
> James

try: rm -- -.o

Regards,

Steffen "goedel" Schuler

Re: How to remove -.o

am 06.12.2007 20:39:38 von Lew Pitcher

On Dec 6, 1:24 pm, James wrote:
> Accidently generated a file named -.o via
>
> echo | gcc -c -xc -
>
> How to remove -.o?

rm ./-.o

Works with all versions of rm (and all other tools) whether it
recognizes the -- argument or not

HTH
--
Lew

Re: How to remove -.o

am 07.12.2007 21:13:51 von kbrede

On Dec 6, 12:24 pm, James wrote:
> Accidently generated a file named -.o via
>
> echo | gcc -c -xc -
>
> How to remove -.o?

rm ./-.o
Kent