From owner-freebsd-questions@FreeBSD.ORG Mon Dec 15 03:21:37 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 61C0C106564A for ; Mon, 15 Dec 2008 03:21:37 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from ayn.mi.celestial.com (hayek.celestial.com [192.136.111.12]) by mx1.freebsd.org (Postfix) with ESMTP id DE9C08FC12 for ; Mon, 15 Dec 2008 03:21:36 +0000 (UTC) (envelope-from bill@ayn.mi.celestial.com) Received: from localhost (localhost [127.0.0.1]) by ayn.mi.celestial.com (Postfix) with ESMTP id E917C684D0121; Sun, 14 Dec 2008 19:21:33 -0800 (PST) X-Virus-Scanned: amavisd-new at mi.celestial.com Received: from ayn.mi.celestial.com ([127.0.0.1]) by localhost (ayn.mi.celestial.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kemwxVRnireA; Sun, 14 Dec 2008 19:21:33 -0800 (PST) Received: by ayn.mi.celestial.com (Postfix, from userid 203) id C303E684D0120; Sun, 14 Dec 2008 19:21:33 -0800 (PST) Date: Sun, 14 Dec 2008 19:21:33 -0800 From: Bill Campbell To: freebsd-questions@freebsd.org Message-ID: <20081215032133.GB4812@ayn.mi.celestial.com> Mail-Followup-To: freebsd-questions@freebsd.org References: <4945BF22.7030606@enabled.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4945BF22.7030606@enabled.com> User-Agent: Mutt/1.5.18 OpenPKG/% (2008-05-17) Subject: Re: control character file names X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@celestial.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 03:21:37 -0000 On Sun, Dec 14, 2008, Noah wrote: > Hi there, > > there is a blank directory that I cant seem to view. I believe the > directory is a '^M'. can somebody please explain how I can see > filenames and directories containing control characters. Also how do I > rename the directory with 'mv'? There are various ways to handle this. # this will show the file with special characters escaped ls | cat -v # this will put the output of ls into a file that can then be # edited with vim so one could insert ``mv '' before the funny # file name, and `` newname'' after it. ls > tmpfile As others have mentioned, using a graphical file manager can make it easy as well. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 The end move in politics is always to pick up a gun. -- Buckminster Fuller