semi OT: sh scripting problem
Robert Huff
roberthuff at rcn.com
Wed Aug 1 22:17:03 UTC 2007
Eric Crist writes:
> > If you're using bash, set IFS to the newline only before looping. I
> > guess the
> > tcsh also has a similar setting, but I wouldn't know where to look.
> >
> > ---
> > IFS="
> > "
>
> This also works for sh. To the OP, simply add the lines above
> your for listed above to your script, and it should work. No
> bash required.
Tested and confirmed.
Thanks everyone - the script works.
Robert Huff
More information about the freebsd-questions
mailing list