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