09-09-05 10:54 PM
Herbert <kang_uni@hotmail.com> wrote:
> I have two more questions:
Please give your posts a more descriptive subject. Just about every
post here is a unix question.
> 1. How can I remove a file whose name starts with a dash? Example,
> "-error" ?
rm ./-error
People will suggest other methods, but this is the most universally
applicable.
> 2. How can I delete an unusually named file using its i-node value?
Assuming the inode is 12345,
find . -inum 12345 -exec rm {}\;
--
Oh to have a lodge in some vast wilderness. Where rumors of oppression
and deceit, of unsuccessful and successful wars may never reach me
anymore.
-- William Cowper
[ Post a follow-up to this message ]
|