#!/bin/bash for I in job_similarities_*.csv ; do ./plot.R $I mkdir $I.out rm $I.out/* mv *.png *.pdf $I.out done