Date: Tue, 15 Apr 2008 09:09:54 -0500 From: Derek Ragona <derek@computinginnovations.com> To: Simon Gao <gao@schrodinger.com>, freebsd-questions@freebsd.org Subject: Re: file/directory names with space in between Message-ID: <6.0.0.22.2.20080415090757.02511008@mail.computinginnovations.com> In-Reply-To: <4803E7D4.7080003@schrodinger.com> References: <4803E7D4.7080003@schrodinger.com>
index | next in thread | previous in thread | raw e-mail
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.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.0.22.2.20080415090757.02511008>
