source_tasks=./tasks/*/* extractor_tasks=./extractor/* src=`pwd` for path in `ls -d $source_tasks` do echo $path cd $path && go build cd $src done for path in `ls -d $extractor_tasks` do echo $path cd $path && go build cd $src done