#!/bin/sh

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

