From owner-freebsd-questions@FreeBSD.ORG Wed Aug 1 22:17:03 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5931316A417 for ; Wed, 1 Aug 2007 22:17:03 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 1AEB413C459 for ; Wed, 1 Aug 2007 22:17:02 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 01 Aug 2007 18:17:03 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id IYQ76405; Wed, 1 Aug 2007 18:17:02 -0400 (EDT) Received: from 65-78-26-179.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([65.78.26.179]) by smtp01.lnh.mail.rcn.net with ESMTP; 01 Aug 2007 18:16:56 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18097.1625.578827.381553@jerusalem.litteratus.org> Date: Wed, 1 Aug 2007 18:16:57 -0400 To: freebsd-questions@freebsd.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> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr08.lnh.mail.rcn.net) Subject: Re: semi OT: sh scripting problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Aug 2007 22:17:03 -0000 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