Date: Mon, 14 Apr 2008 16:31:25 -0700 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: Simon Gao <gao@schrodinger.com> Cc: freebsd-questions@freebsd.org Subject: Re: file/directory names with space in between Message-ID: <20080414233125.GF70456@hal.rescomp.berkeley.edu> In-Reply-To: <4803E7D4.7080003@schrodinger.com> References: <4803E7D4.7080003@schrodinger.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--+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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080414233125.GF70456>