#!/bin/bash wd=`pwd` for i in `ls`; do cd $wd/$i ./eggdrop done