From owner-freebsd-questions Sun Oct 14 18:14:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cx2037703-a.kenner1.la.home.com (cx2037703-a.kenner1.la.home.com [24.39.27.145]) by hub.freebsd.org (Postfix) with ESMTP id EF9CA37B408 for ; Sun, 14 Oct 2001 18:14:40 -0700 (PDT) Received: (from conrads@localhost) by cx2037703-a.kenner1.la.home.com (8.11.6/8.11.6) id f9F1EaC26852; Sun, 14 Oct 2001 20:14:36 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.1 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Sun, 14 Oct 2001 20:14:36 -0500 (CDT) Organization: @Home Network From: Conrad Sabatier To: doug@safeport.com Subject: Re: sh script question Cc: freebsd-questions@FreeBSD.ORG 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 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. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message