Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Mar 2007 00:48:54 +1100
From:      Norberto Meijome <freebsd@meijome.net>
To:        Paul Schmehl <pauls@utdallas.edu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: find returns unusable result
Message-ID:  <20070302004854.7aad2d35@localhost>
In-Reply-To: <D29D90080F802A4D1BBB3EDE@utd59514.utdallas.edu>
References:  <D29D90080F802A4D1BBB3EDE@utd59514.utdallas.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 28 Feb 2007 17:12:58 -0600
Paul Schmehl <pauls@utdallas.edu> 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 delimiter in your (bash*)
 shell,  set IFS to something else , eg

export IFS=|

so now, instead of breaking Day and 2 apart, they'll be considered 1 list item.
Which of course may bring other problems... but :)

_________________________
{Beto|Norberto|Numard} Meijome

If you find God, do you get to keep him/her?

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070302004854.7aad2d35>