You can use a $findfile loop for iterations involving operations on each file returned by $findfile, so as an example: //var %x | .echo -q $findfile($mircdir,*.mrc,0,inc -s %x $file($1-)) | echo -a %x - also note that /var creates a local variable, one that terminates at the end of the running process, to avoid setting/unsetting global variables