Date: Tue, 16 Mar 2004 12:22:31 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Chris Pressey <cpressey@catseye.mine.nu> Cc: Questions <freebsd-questions@freebsd.org> Subject: Re: [Fwd: Re: deleting directories with ??? in name] Message-ID: <20040316122231.GA55349@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040315190746.799e4b0d.cpressey@catseye.mine.nu> References: <40564E2C.7060706@earthlink.net> <44smg9oa4r.fsf@be-well.ilk.org> <20040315190746.799e4b0d.cpressey@catseye.mine.nu>
next in thread | previous in thread | raw e-mail | index | archive | help
--IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 .[^.]*=20 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 --=20 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 --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAVvGHdtESqEQa7a0RAi23AJ0Xe7EumqXs5o+ZU3z3NCUaJ+vftgCfbiE6 sad+rwAu6YDjUWxixvHdIxU= =HuxW -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040316122231.GA55349>