From owner-freebsd-questions@FreeBSD.ORG Thu Sep 4 03:35:00 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 E710A1065673 for ; Thu, 4 Sep 2008 03:35:00 +0000 (UTC) (envelope-from erik@cepheid.org) Received: from mail.cepheid.org (aleph.cepheid.org [72.232.60.94]) by mx1.freebsd.org (Postfix) with ESMTP id CFEC98FC1A for ; Thu, 4 Sep 2008 03:35:00 +0000 (UTC) (envelope-from erik@cepheid.org) Received: by mail.cepheid.org (Postfix, from userid 1006) id 269D09B4073; Wed, 3 Sep 2008 22:17:40 -0500 (CDT) Date: Wed, 3 Sep 2008 22:17:40 -0500 From: Erik Osterholm To: Noah Message-ID: <20080904031740.GA37290@aleph.cepheid.org> References: <48BF3F0F.6030606@enabled.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48BF3F0F.6030606@enabled.com> User-Agent: Mutt/1.4.2.3i 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:35:01 -0000 On Wed, Sep 03, 2008 at 06:51:11PM -0700, Noah wrote: > Hi there, > > I had rsync create a directory with a '^M' in it. > > how do I rm -rf the directory? > > Cheers, > Noah There are multiple possibilities: 1) Use a shell which supports tab completion, and tab-complete the entry. 2) Embed the '^M' using '^V''^M' (type ctrl-v then ctrl-m.) 3) Use shell globbing (if the file is abra^Mcadabra, type: ls abra* rm abra* (only if the above matched exactly what you want to delete.) Erik