Re: netgear ma311 failures (wi0 driver)

"Michael W. Oliver" <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
> ext Cliff L. Biffle ([email protected]) wrote:
> >
> > On a related note, can a bourne shell guru drop me a line and tell me
how to
> > for-loop over -lines- in a file instead of -words- in a file?  I've
tried
> > changing the delimiter characters with no luck. :-)
>
> Hi,
>  Make a text file one word per line called TEXT.
>
>
>
>
> #!/bin/sh
>
> for x in `cat TEXT`
> do
> echo -e "$x\n"
> done
>
>
> --

I think that is the problem that he is having.  He already has multiple
words per line, and needs to read them from the file as _lines_ and not
_words_.  Try this....

<a file called 'list' has the lines of text that you want to read>


#!/bin/sh

cat list | while read line
do
        echo $line
done


That should take care of it.


--
+---------------------------------------+------------------------------+
|        Michael W. Oliver, CCNP        | "The tree of liberty must be |
|          IPv6 & FreeBSD mark          | refreshed from time to time  |
|        [email protected]         | with the blood of patriots   |
|    http://michael.gargantuan.com/     | and tyrants."                |
|   ASpath-tree, Looking Glass, etc.    | - President Thomas Jefferson |
|                                       +------------------------------+
|       gpg key - http://michael.gargantuan.com/gnupg/pubkey.asc       |
+----------------------------------------------------------------------+

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.