|
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]
|
|
|
| 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
|
|
|
|
|