From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Wed, 2 Sep 1998 14:02:34 -0700 From: Tom Duff td@pixar.com Subject: [9fans] Find command Topicbox-Message-UUID: 7e7186cc-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19980902210234.fiTyRNdZPRN4XfZTwfeCpezuhVeMBTR3g6bwjAfInvI@z> On Sep 2, 4:28pm, Russ Cox wrote: > fn xargs { > while(a=`{read}) > $* $a > } > > du -a | xargs ls -l More straightforwardly, this is for(a in `{du -a}) ls -l $a But, since du -a gives two fields on each line, only one of which is interesting, you need to write for(a in `{du -a|awk '{print $2}'}) ls -l $a or, since ls already loops over its arguments ls -l `{du -a|awk '{print $2}'} -- Tom Duff. It may be inelegant and sluglike, but bloatware sells.