#!/bin/sh

for f in `ls *.r`; do
  mpirun -np $1 Rscript $f
done

