From owner-freebsd-questions Sun Oct 14 20: 4:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pemaquid.safeport.com (pemaquid.safeport.com [204.156.12.58]) by hub.freebsd.org (Postfix) with ESMTP id 5570D37B40E for ; Sun, 14 Oct 2001 20:04:12 -0700 (PDT) Received: from localhost (doug@localhost) by pemaquid.safeport.com (8.11.5/8.11.1) with ESMTP id f9F349f31969; Sun, 14 Oct 2001 23:04:09 -0400 (EDT) (envelope-from doug@safeport.com) X-Authentication-Warning: pemaquid.safeport.com: doug owned process doing -bs Date: Sun, 14 Oct 2001 23:04:09 -0400 (EDT) From: To: Conrad Sabatier Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sh script question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Like magic - thank you. Do you know why it reads line-wise in this form? On Sun, 14 Oct 2001, Conrad Sabatier wrote: > > On 15-Oct-2001 doug@safeport.com wrote: > > for Line in `cat ${FILE:-$1}`; do > > echo $Line > > done > > I always use something like this: > > while read Line > do > echo $Line > done < $FILE > > -- > Conrad Sabatier > > Bare feet magnetize sharp metal objects so they point upward from the > floor -- especially in the dark. > > _____ Douglas Denault doug@safeport.com Voice: 301-469-8766 Fax: 301-469-0601 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message