From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 14:08:28 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 A3FDF106564A for ; Tue, 15 Apr 2008 14:08:28 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id 3A0B88FC17 for ; Tue, 15 Apr 2008 14:08:28 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m3FE87Mu008895; Tue, 15 Apr 2008 09:08:08 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080415090757.02511008@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Tue, 15 Apr 2008 09:09:54 -0500 To: Simon Gao , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <4803E7D4.7080003@schrodinger.com> References: <4803E7D4.7080003@schrodinger.com> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080415-1, 04/15/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.92.1/6780/Tue Apr 15 04:47:04 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m3FE87Mu008895 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: file/directory names with space in between 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: Tue, 15 Apr 2008 14:08:28 -0000 At 06:25 PM 4/14/2008, Simon Gao wrote: >Hi, > >I need to work on some files and directories that have spaces in them like: > >interesting story\2008 March\{story one,story two}. > >When using find with -exec, part of the file/directory name will be >missing and therefore lead to error. > >What should I do to put escape key in there to include full names? > >Simon try using double quotes and wild cards where the spaces are, such as: find / -name "interesting*story\2008*March\{story*one,story*two}" -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.