Re: for command

From: Green, Simon (Simon.Green@EU.ALTRIA.COM)
Date: Thu Nov 06 2003 - 12:25:31 EST


That's what I'd usually use.
Bear in mind that there are some limitations. Try putting an rsh inside the
loop and see what happens...
Provided the code inside the loop doesn't get too fancy, however, it'll work
fine.

Simon Green
Altria ITSC Europe Ltd

AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html

AIX FAQ at http://www.faqs.org/faqs/aix-faq/

N.B. Unsolicited email from vendors will not be appreciated.
Please post all follow-ups to the list.

> -----Original Message-----
> From: Coyle, Jack [mailto:Jack.Coyle@REXHEALTH.COM]
> Sent: 06 November 2003 14:16
> To: aix-l@Princeton.EDU
> Subject: Re: for command
>
>
> If the use of the "for" construct is not a requirement, the
> following will
> do what you want:
>
> cat testfile | while read line ; do
> echo $line
> done



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:20 EDT