[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cd to folder with spaces - in a script



On Thu, May 21, 2009 at 8:34 PM, Michael Casey <michaelcasey73@gmail.com> wrote:
> yeah, SOLVED: :))
>
> clear; find . -type d | while read FOLDERNAME; do $(cd "$FOLDERNAME"); done
If you want set variables and using it later, I recommend you another method:
while read FOLDERNAME; do $(cd "$FOLDERNAME"); done < <(find . -type d)

Regards,


Reply to: