#!/bin/sh

MASSES=`awk '!/^#/' MASSES`

for MASS in $MASSES ; do

  DIR=M$MASS"_"Z0.02
  mkdir $DIR
  awk -vMASS=$MASS '{ gsub("\\$MASS", MASS); print; }' < EZ2.in > $DIR/EZ2.in
  cd $DIR
  ln -s ../../EZ2
  ln -s ../../EZ2.plt
  ln -s ../../run
  cd ..

done


