#!/bin/bash for t in $1*/Post do if [ -e $t ] then for s in "ft-fm#p_refl#2 ft-fp#p_trns#8 ft-gm#s_trns#8 ft-gp#s_refl#2" do inf=$(echo $s | tr "#" " " | awk '{print $1}') if [ -e $t/$inf ] then echo $t/$inf $s; directory=$t input=$inf outpart=$(echo $s | tr "#" " " | awk '{print $2}') column=$(echo $s | tr "#" " " | awk '{print $3}') gnuplot plotspectra.gnu fi done fi done