#!/bin/bash

export LIBRARY_PATH=~/code/cellml-api
RS=~/code/cellml-api/RunSEDML

for i in `seq 1 5`; do
  $RS file://`pwd`/single-run.sedml | tail -n+2 >out$i.csv;
done

R --no-save <<EOF
df1 <- read.csv('out1.csv')
EOF