#!/bin/sh

for f in `ls *.r`;do
  echo "${f}:"
  mpirun -np 2 Rscript $f
  echo ""
done
