Deleting file called -F

Deleting file called -F

Post by Douglas Wo » Sat, 07 Jan 1995 04:31:59



Try this rm - -F to delete this file.
 
 
 

Deleting file called -F

Post by Roger Espel Lli » Sat, 07 Jan 1995 09:24:04





>>Deleting file called -F
>>Try this rm - -F to delete this file.

>In response:

>try deleting it using its inode number
>1st do a ls -i
>2nd use this find command
>  find . -inum N -exec rm {} \;
>where N is the inode number of the file to be deleted

rm ./-F

is a LOT easier

--
+----------------------------+---------------------------------------------+
|   Roger ESPEL LLIMA        |                                             |

|   75005 PARIS FRANCE       |                                             |
+----------------------------+---------------------------------------------+
|  I've got to get dressed to go out of my mind - King Crimson, VROOOM     |
+--------------------------------------------------------------------------+

 
 
 

Deleting file called -F

Post by Brad Piat » Sat, 07 Jan 1995 06:37:44



>Deleting file called -F
>Try this rm - -F to delete this file.

In response:

try deleting it using its inode number
1st do a ls -i
2nd use this find command
  find . -inum N -exec rm {} \;
where N is the inode number of the file to be deleted

--
  /* ***         Bradley S. Piatek                     *** */
  /* *** GMI Engineering & Management Institute        *** */
  /* *** 1700 West Third Avenue  Flint, MI 48504-4898  *** */

 
 
 

Deleting file called -F

Post by Dave Forem » Sat, 07 Jan 1995 06:31:16



Quote:

>Try this rm - -F to delete this file.

This will work, but it will also remove the file named '-' if one exists.

Syntactically speaking, it should be    rm -- -F

 
 
 

Deleting file called -F

Post by Dave Cartwrig » Sun, 08 Jan 1995 23:16:48


Quote:> >Try this rm - -F to delete this file.

> This will work, but it will also remove the file named '-' if one exists.

> Syntactically speaking, it should be    rm -- -F

My SPARC 2 (SunOs 4.something) says the former, and works fine For
example, if I create a file "-" and a file "-F" and say "rm - -F" then
"-F" gets blatted and "-" stays put. To remove both "-" and "-F" requires
me to say "rm - - -F".

Dave