[comp.unix.questions] How to delete a file using inode numbers?

se208104@seas.gwu.edu (William Lai) (03/21/90)

I accidentally created a file using fopen(), using a uninitalized buffer
as the filename string.  What I got on hand is a file with a non-ascii name.
When I try to do rm(1): "rm *", the diagnostic is 

      "rm: <a bunch of garbage>: No such file or directory."

However, when I ls(1), it clearly indicated a zero-lengthed file with a weird
name exists, and even gives an inode number.

My question is this:  Can I delete the file using the inode number?  Or maybe
                      there's a better way?

Thanks in advance,
William

Please email answers to me and I will summarize and post to this group.