#!/bin/bash sed -i -e 's/epslatex$/epslatex standalone/g' gnuplottex/* for file in gnuplottex/*.gnuplot; do gnuplot $file; done for file in gnuplottex/*.tex; do pdflatex $file; done