From owner-freebsd-questions@FreeBSD.ORG Thu Sep 4 03:20:42 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA37710657C2 for ; Thu, 4 Sep 2008 03:20:42 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 394178FC18 for ; Thu, 4 Sep 2008 03:20:41 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl57-66.kln.forthnet.gr [77.49.184.66]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id m843KLqW017707 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 4 Sep 2008 06:20:27 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id m843KKpd003011; Thu, 4 Sep 2008 06:20:20 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id m843KJDR003010; Thu, 4 Sep 2008 06:20:19 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Noah References: <48BF3F0F.6030606@enabled.com> Date: Thu, 04 Sep 2008 06:20:19 +0300 In-Reply-To: <48BF3F0F.6030606@enabled.com> (Noah's message of "Wed, 03 Sep 2008 18:51:11 -0700") Message-ID: <87fxog8umk.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m843KLqW017707 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.838, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.56, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: User Questions Subject: Re: cd and rm a directory with '^M' X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Sep 2008 03:20:42 -0000 On Wed, 03 Sep 2008 18:51:11 -0700, Noah wrote: > Hi there, > > I had rsync create a directory with a '^M' in it. > > how do I rm -rf the directory? These are a few options: (1) In most shells, you can type a ^M character as part of a filename by prefixing the ^M character with ^V. (2) Use tab completion. Type the first part of the filename and hit the TAB key. The shells which support tab completion will fill in the remaining bits of the filename in the 'correct' way. (3) Use a GUI file manager or the `dired' mode of GNU Emacs to delete the file.