in message <[EMAIL PROTECTED]>,
wrote Matthew Hunt thusly...
>
> On Wed, Feb 12, 2003 at 02:21:43PM -0500, parv wrote:
> 
> >  find . -inum $( /bin/ls -i | fgrep '?' | awk '{print $1}' ) -print0 \
> >  | xargs -0 rm -f
> 
> I'm going to go out on a limb and guess that the filename does not really
> consist of question marks, but rather of unprintable characters that ls
> displays as '?'.

Hey, OP said that file name consisted of '?'.  W/o access to OP's
system or due to lacking output of (something like) "ls -B" (FreeBSD
4.7-Release), i rather not guess what-could-be.  Me no fs (or
people) mind reader.

Then again i did write "something like" before the proposed
solution (which you omitted from the quote).

:)


> I recommend finding the inode number of the offending file:
> 
> $ ls -li
> total 1
> 1238024 -rw-rw-r--  1 mph  mph  1 Feb 12 12:07 ?
> 
> The inode number in this case is 1238024.  Then you can double-check and
> delete it with find:
> 
> $ find . -inum 1238024 
> ./+
> $ find . -inum 1238024 -delete

Exactly my point: use "find -inum" to find the offending file(s) & deal
w/ it(them) as appropriate.


  - parv

-- 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to