Date: Sun, 14 Oct 2001 20:14:36 -0500 (CDT) From: Conrad Sabatier <conrads@home.com> To: doug@safeport.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: sh script question Message-ID: <XFMail.20011014201436.conrads@home.com> In-Reply-To: <Pine.BSF.4.21.0110142012320.23659-100000@pemaquid.safeport.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <conrads@home.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20011014201436.conrads>