opendir MainDir or die ""; while <> `grep "theInfolookingfor" fileUnderDir > fileUnderDir.out` cloes dir;