[Fwd: Re: deleting directories with ??? in name]
Matthew Seaman
m.seaman at infracaninophile.co.uk
Tue Mar 16 04:22:54 PST 2004
On Mon, Mar 15, 2004 at 07:07:46PM -0800, Chris Pressey wrote:
> That wouldn't explain why 'rm -i *' returned 'no match', though.
Just to eliminate the obvious: did these weird filenames begin with a
'.'? Shell globbing treats file names with a leading period
specially. You'ld have to do:
% ls -d .*
to get a listing of those files, and:
% rm -ri .[^.]*
to delete them. Note the extra effort taken to avoid matching the
special names '.' and '..' -- doing a recursive delete of '..' is a
real foot-shooting exercise.
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks
Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614 Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040316/17131449/attachment.bin
More information about the freebsd-questions
mailing list