Re: find returns unusable result

2007-03-02 Thread Bill Campbell
On Wed, Feb 28, 2007, Vince wrote: Josh Tolbert wrote: On Wed, Feb 28, 2007 at 05:12:58PM -0600, Paul Schmehl wrote: I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if they aren't what I want. Unfortunately, the people creating the

Re: find returns unusable result

2007-03-02 Thread Gary Kline
On Wed, Feb 28, 2007 at 03:38:24PM -0800, Bill Campbell wrote: On Wed, Feb 28, 2007, Vince wrote: Josh Tolbert wrote: On Wed, Feb 28, 2007 at 05:12:58PM -0600, Paul Schmehl wrote: I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if

Re: find returns unusable result

2007-03-01 Thread Vince
Josh Tolbert wrote: On Wed, Feb 28, 2007 at 11:33:14PM +, Vince wrote: or just find /path/to/dirs -type d -exec chmod 755 {} \; should do it. Fair enough; I generally prefer the xargs method in case I have to do any more processing later. Also, xargs' batching may potentially save

Re: find returns unusable result

2007-03-01 Thread Norberto Meijome
On Wed, 28 Feb 2007 17:12:58 -0600 Paul Schmehl [EMAIL PROTECTED] wrote: 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) doesn't work. And for completeness sake, if you want to change the

find returns unusable result

2007-02-28 Thread Paul Schmehl
I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if they aren't what I want. Unfortunately, the people creating the folders are Windows folks using WinSCP, and so they create folders with spaces in them. (E.g. Day 1, Day 2, etc.) I

Re: find returns unusable result

2007-02-28 Thread Josh Tolbert
On Wed, Feb 28, 2007 at 05:12:58PM -0600, Paul Schmehl wrote: I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if they aren't what I want. Unfortunately, the people creating the folders are Windows folks using WinSCP, and so they

Re: find returns unusable result

2007-02-28 Thread Vince
Josh Tolbert wrote: On Wed, Feb 28, 2007 at 05:12:58PM -0600, Paul Schmehl wrote: I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if they aren't what I want. Unfortunately, the people creating the folders are Windows folks using

Re: find returns unusable result

2007-02-28 Thread Paul Schmehl
--On Wednesday, February 28, 2007 17:16:35 -0600 Josh Tolbert [EMAIL PROTECTED] wrote: On Wed, Feb 28, 2007 at 05:12:58PM -0600, Paul Schmehl wrote: I'd like to cron a process that looks at a certain folder every day and changes the perms on a directory if they aren't what I want.

Re: find returns unusable result

2007-02-28 Thread Josh Tolbert
On Wed, Feb 28, 2007 at 11:33:14PM +, Vince wrote: or just find /path/to/dirs -type d -exec chmod 755 {} \; should do it. Fair enough; I generally prefer the xargs method in case I have to do any more processing later. Also, xargs' batching may potentially save you a bit of time, but I