#!/bin/bash if [[ $? -ne 1 ]]; then echo "usage: $0 " else $data=$1; $png=`echo $1 | sed -s "s/\.csv$//"` # strip ending (gnuplot < "${png}.gnuplot.log" mv fit.log "${png}.gnuplot.fit.log" fi