Unix Shell - How to remove -.o

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > December 2007 > How to remove -.o





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to remove -.o
James

2007-12-06, 1:29 pm

Accidently generated a file named -.o via

echo | gcc -c -xc -

How to remove -.o?

TIA
James
Steffen Schuler

2007-12-06, 1:29 pm

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
Lew Pitcher

2007-12-06, 7:25 pm

On Dec 6, 1:24 pm, James <hslee...@yahoo.com> 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

kbrede@gmail.com

2007-12-07, 7:23 pm

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


rm ./-.o
Kent
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com