#!/bin/bash for file in *.csv do name=${file/\.*/}".temp"; sed 's/,/ /g' $file > $name done gnuplot <