From owner-freebsd-questions Sun Sep 20 07:50:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05064 for freebsd-questions-outgoing; Sun, 20 Sep 1998 07:50:31 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from harfang.CC.UMontreal.CA (harfang.CC.UMontreal.CA [132.204.2.102]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05033 for ; Sun, 20 Sep 1998 07:50:19 -0700 (PDT) (envelope-from beaupran@JSP.UMontreal.CA) Received: from epsom.jsp.umontreal.ca (epsom.JSP.UMontreal.CA [132.204.45.25]) by harfang.CC.UMontreal.CA (8.8.8/8.8.8) with SMTP id KAA10240; Sun, 20 Sep 1998 10:49:44 -0400 (EDT) Received: from derby.jsp.umontreal.ca (derby.jsp.umontreal.ca [132.204.45.26]) by epsom.jsp.umontreal.ca via ESMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id KAA11167; Sun, 20 Sep 1998 10:49:44 -0400 Received: from localhost (beaupran@localhost) by derby.jsp.umontreal.ca via SMTP (951211.SGI.8.6.12.PATCH1502/JSP1789) id KAA25290; Sun, 20 Sep 1998 10:49:44 -0400 X-Authentication-Warning: derby.jsp.umontreal.ca: beaupran owned process doing -bs Date: Sun, 20 Sep 1998 10:49:43 -0400 (EDT) From: BEAUPRE Antoine To: ringlord@bbs.dcoisp.net cc: freebsd-questions@FreeBSD.ORG Subject: Re: Accessing files with spaces in the names. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 19 Sep 1998 ringlord@bbs.dcoisp.net wrote: > Greetings folks. > I just received a zip file from a client, which contains a series of > files with spaces in the file names. > For example, when I do an ls on the directory the files are zipped into, > one of the files has a name of Merchant Lot 1 Photo.jpg > This zipfile was created on a win95 machine that allows long file names. > I have tryed to figure out how to rename these files to files with one > name to them. > when I typed, mv Merchant Lot 1 Photo.jpg merchantlot.jpg Try: % mv Merchant\ Lot\ 1\ Photo.jpg merchantlot.jpg It works under tcsh. Anyways, any shell that knows about filename completion will complete the filename to a compatible filename. > I was told that the files Merchant Lot 1 Photo.jpg could not be found. > How does one go about accessing these files with such long names? > I have even tryed inserting . _ marks, but nothing works. Normal. Marks and dots and such will make a different filename, in tcsh, '\' is the escape char, which means "the following must be treated as such". +-----------------------------------+ | Free the world from businessmen | | Free yourself from your money | +-----------------------------------+ Free the web. Spidey visit: http://www.JSP.UMontreal.CA/~beaupran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message