From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 23:31:26 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 8C5A21065672 for ; Mon, 14 Apr 2008 23:31:26 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id 774418FC23 for ; Mon, 14 Apr 2008 23:31:26 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id E005C3C04EE; Mon, 14 Apr 2008 16:31:25 -0700 (PDT) Date: Mon, 14 Apr 2008 16:31:25 -0700 From: Christopher Cowart To: Simon Gao Message-ID: <20080414233125.GF70456@hal.rescomp.berkeley.edu> Mail-Followup-To: Simon Gao , freebsd-questions@freebsd.org References: <4803E7D4.7080003@schrodinger.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+jhVVhN62yS6hEJ8" Content-Disposition: inline In-Reply-To: <4803E7D4.7080003@schrodinger.com> Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org 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: Mon, 14 Apr 2008 23:31:26 -0000 --+jhVVhN62yS6hEJ8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Simon Gao wrote: > I need to work on some files and directories that have spaces in them lik= e: >=20 > interesting story\2008 March\{story one,story two}. >=20 > When using find with -exec, part of the file/directory name will be missi= ng=20 > and therefore lead to error. >=20 > What should I do to put escape key in there to include full names? $ echo foo > "test 1" $ find . -type f -exec cat {} \; foo Looks like it Just Works(tm), no quoting necessary. Could you provide the actually command you're running that isn't doing what you expect? --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --+jhVVhN62yS6hEJ8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iQIVAwUBSAPpTSPHEDszU3zYAQKB1w//a5kEv+9CzJ0QYdYCTj65Z7MffUsMhVYd bMs3vR21izI+B5gxCvQW1JRlL6ybNb11WKmGXwlAYDVTcDGsAEA/U6Gf45VcZwQu 4oxbSlxQOiAn2kh6T84AT1aSFhPkzwgGkgb71XszL9RQnFnPAHMsmuqEgzN3NbBP kiEE79Vu/HjsKg+obiBQBHII/7Xg3/fTkzg0kH/V7495RMjdnRa1oLgWCTLqO8nD 0pUNTiQL+lE5rf6aX9LfMBHL4c+excum3wwqwgyq8f4tvBdDCyR9MyI8eCqj/khz o4uS4r6KjH7L7cdnyGQnaq7dwt78bhq7KCccjNmsXqXnWN+Rb0QGPz6BgvAlT+1X jWzjS3krreQgGylgQS1nCbeoFyXfOtfHnsp7+UtOTlfhgq/b6c70IQrYKWseKJAz mCasIBISW/zm4lz7xIP/rgme1gxGOV0lrVZdlybjhVimFBi4X2kr9IsKlcvLqZCa SVAc501XkAxRM96PB0SplZkVCCz+fb8EQv68xtJPIi4oubbzyIZ/YUTPEnMRfE2P qpTp/chdH7NpYzD0LJZXX/N4+77lUcrGMNA/gaLFNy5ZuR8Lgl+tCZKWT0UCpIOP OjWUOZucqov+YEadzjHcpPC7RPMEIgBu6zY/aCvMoo4nRvelIwqDaLc7rMibIs1g JdLSjKJ5kQk= =i3ta -----END PGP SIGNATURE----- --+jhVVhN62yS6hEJ8--