From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: steve.simon@snellwilcox.com Message-Id: <3511325137@snellwilcox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Id: <3511325137-1@snellwilcox.com> Content-Transfer-Encoding: 7bit Subject: [9fans] rc - how to... Date: Thu, 12 Sep 2002 15:03:12 +0100 Topicbox-Message-UUID: e92d537c-eaca-11e9-9e20-41e7f4b1d025 Hi, I like rc's language very much, but, I cannot work out how to read a series of words from a slow running program, for example: for ( file in `{du /} ) echo $file(1) This runs the du and then processes the output of it. I want to read du's output a line at a time so I get dataflow and see the output of each line as they are processed. I would use the read(1) command in Bourne shell but cannot see an equivalent in rc. Anyone help? Thanks, -Steve