Date: Wed, 1 Aug 2007 18:16:57 -0400 From: Robert Huff <roberthuff@rcn.com> To: freebsd-questions@freebsd.org Subject: Re: semi OT: sh scripting problem Message-ID: <18097.1625.578827.381553@jerusalem.litteratus.org> In-Reply-To: <41DEA020-0134-46DB-A6E1-B8D0881768FE@gmail.com> References: <18096.39488.530454.883753@jerusalem.litteratus.org> <200708011654.08611.wundram@beenic.net> <41DEA020-0134-46DB-A6E1-B8D0881768FE@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18097.1625.578827.381553>