#!/bin/bash

for dia in `seq -w 1 31`;
do 
  sed 's,#dia#,'$dia',g' pre.template > pre.nml
  ./prep_1.0
done