req: New feature to rm? Remove file by the inode number
Brian Fundakowski Feldman
green at freebsd.org
Thu May 5 06:34:19 PDT 2005
On Thu, May 05, 2005 at 02:47:55PM +0300, Erik Udo wrote:
> Wilko Bulte wrote:
> >On Thu, May 05, 2005 at 02:19:41PM +0300, Erik Udo wrote..
> >
> >>I couldn't find a way to remove files that had scandic/non-printable
> >>letters, then i remembered ls showed inode number of the file. Is it
> >>possible to remove the file by the inode number? It would be a
> >>useful feature :)
> >>
> >>I bet there is a way to remove those files, but only
> >>third party programs came to my mind.
> >
> >
> >If you want do to it the hard way: clri(8)
> >
> >:-)
> >
>
> Thanks! I'll use clri for this. It would still be a nice
> feature in rm, after all, i dont think it's that hard to
> make.
Way overkill. find . -mindepth 1 -maxdepth 1 -inum <inode>
--
Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\
<> green at FreeBSD.org \ The Power to Serve! \
Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\
More information about the freebsd-hackers
mailing list