#!/bin/bash for d in `ls` do javac $d/*.java > $d/compile.txt done