On Thu, Mar 09, 2000 at 09:18:21AM +1100, Dave Fitch wrote:
> and for those really tricky ones where I'm sure it's possible
> to remove using some wonderful combination of shell escapes etc
> but I can't be bothered working it all out, I fire up a gui
> file manager type tool, click on the offending file and select
The other way to do this is to get the inode number of the file, and
then ask find to delete it for you. eg :
milliways:/tmp/x$ ls -li
total 4
516919051 -rw-r--r-- 1 scott 6 Mar 9 09:56 -h
milliways:/tmp/x$ find . -inum 516919051 -ok -exec rm {} \;
< -exec ... ./-h >? y
milliways:/tmp/x$
(the -ok just gets it to make you confirm it's got the right file)
This is overkill for just something which starts with a dash, but works
well for weird characters, etc.
Scott.
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text