From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <13426df10705150838y7148f207m8fbc1631752fc8aa@mail.gmail.com> Date: Tue, 15 May 2007 08:38:25 -0700 From: "ron minnich" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] A simple rc question Topicbox-Message-UUID: 6741f2f2-ead2-11e9-9d60-3106f5b1d025 This is a quick attempt at multitail, which does a tail -f on lots of files, printing the lines from each with the name prepended. This thing almost works -- except it blocks on each command, not & as I expect. What did I do wrong? #!/bin/rc for(f) tail -f $f | awk '{print "'^$f^':" $0}'& ron