"Mansur, Warren" <[EMAIL PROTECTED]> writes:

> Does anyone know how to loop through each line instead, so that the output would be
> line 1
> line 2
> ?  Thanks.
> 

echo -ne 'line 1\nline 2\n' | while read foo ; do echo $foo ; done


-- 
John Abreau / Executive Director, Boston Linux & Unix 
ICQ 28611923 / AIM abreauj / JABBER [EMAIL PROTECTED] / YAHOO abreauj
Email [EMAIL PROTECTED] / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

   "The Earth is degenerating these days. Bribery and corruption abound.
    Children no longer mind their parents, every man wants to write a book,
    and it is evident that the end of the world is fast approaching."
        (translated from an Assyrian stone tablet, c. 2800 B.C.)


Attachment: msg14340/pgp00000.pgp
Description: PGP signature

Reply via email to