Date: Wed, 28 Feb 2007 17:12:58 -0600 From: Paul Schmehl <pauls@utdallas.edu> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: find returns unusable result Message-ID: <D29D90080F802A4D1BBB3EDE@utd59514.utdallas.edu>
next in thread | raw e-mail | index | archive | help
--==========677771D85C7F5ADCF636========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'd like to cron a process that looks at a certain folder every day and=20 changes the perms on a directory if they aren't what I want.=20 Unfortunately, the people creating the folders are Windows folks using=20 WinSCP, and so they create folders with spaces in them. (E.g. Day 1, Day=20 2, etc.) I thought I could just do this: chmod 755 `find /path/to/dirs -type d` but find returns a directory name of Day, Day, Day, which (obviously)=20 doesn't work. >From the cli, find returns the actual directory name. How can I get find to return the dirs correctly in a script? Or is there=20 some other way to do this that would work? Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ --==========677771D85C7F5ADCF636==========--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D29D90080F802A4D1BBB3EDE>