#!/bin/bash CUR=`pwd` for i in * do cd $i make rcrpointer > rcrlog make ooo > ooolog make single > singlelog cd $CUR done