[ale] How can I delete this file?

David A. De Graaf dad at datix.2y.net
Tue Sep 7 23:24:43 EDT 2004


On Tue, Sep 07, 2004 at 08:36:18PM -0400, Christopher Bergeron wrote:
> Hrm, neither solution seemed to work.  I'm truly stumped on this one.  I 
> have no idea what created these files, I think I cat'ed a binary to the 
> console or something.
> 
> Any other ideas?
> 
> Is there a way I can delete the inode(s) without damaging my filesystem?

The 'find' command will almost always do this job:

First make sure you can concoct a regular expression for the name that 
matches only this single file.  Maybe this will work; if not experiment:

    find . -maxdepth 1 -name "*A?B*" -print

If this prints that file, and only that file, then add the remove
action:

    find . -maxdepth 1 -name "*A?B*" -exec rm {} \;
   
This works because the {} notation will match whatever filename the
other rules have selected, no matter what weird characters are in
there.

-- 
	David A. De Graaf    DATIX, Inc.    Hendersonville, NC
	dad at datix.2y.net    (828) 696-8646;  fax (828) 694-1037



More information about the Ale mailing list