#!/bin/bash Here=$1 Log=$2 Hypotheses=$3 for hypothesis in $Hypotheses do mkdir $Here/results/$hypothesis echo "Checking hypothesis $hypothesis" for i in *.csv do ./blab "$i " stem=${i/\.*/} grep $stem $Log | ./nonParametricAnalysisWMW Hypothesis=$hypothesis RanksFileName=$Here/results/$hypothesis/"ranks_"$stem done done