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