On Wed, Feb 12, 2003 at 11:45:33AM -0800, Kent Stewart typed:
> On Wednesday 12 February 2003 11:21 am, parv wrote:
> > in message <[EMAIL PROTECTED]>,
> > wrote David Banning thusly...
> >
> > > I have a file called ???????????????
> >
> > ...
> >
> > > I can't seem to clean it away.
> > >
> > > rm ????????
> > > rm '????????'
> > > rm "????????"
> > >
> > > all do not work.
> >
> > try something like...
> >
> >  find . -inum $( /bin/ls -i | fgrep '?' | awk '{print $1}' ) -print0
> > \
> >
> >  | xargs -0 rm -f
> >
> 
> 
> That is a lot of work when you could have just
>  
> rm -- ???????????????

This will delete all files that have a name the length of 15 characters.  

> 
> The "--" tells rm that what follows is a file name.

But first, the ?'s are expanded by the shell to match any file with a 
name of 15 characters.

> 
> Kent
> 
> -- 
> Kent Stewart
> Richland, WA
> 
> http://users.owt.com/kstewart/index.html
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message

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

Reply via email to