Re: [SLUG] Scripting Question

From: Steven Johnson (alinuxguru@hotmail.com)
Date: Thu Nov 29 2001 - 00:10:09 EST


Oops, sorry. I did not bother to review the entire script that I extracted
that out from. This will only work if there are no spaces in the line.
I preformatted the file to replace spaces with underscores using sed. :(

----Original Message Follows----
From: "Steven Johnson" <alinuxguru@hotmail.com>
Reply-To: slug@nks.net
To: slug@nks.net
Subject: Re: [SLUG] Scripting Question
Date: Wed, 28 Nov 2001 17:42:40

If this has not already been covered, why not:

#!/bin/sh

for LINE in `cat ${FILE}`
do
   echo ${LINE}
done

Please note the ` is not a '

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:58:07 EDT