3 # Script to plot .dat files
5 title=$(grep "# Title: " $0 | sed 's/# Title: //g')
6 labels=$(grep "# Format: " $0 | sed 's/# Format: //g')
13 xlabel=$(echo $labels | tr " " "\n" | head --lines=$x | tail --lines=1)
14 command="set title \"$title\""
15 command="$command; set xlabel \"$xlabel\""
16 command="$command; set ylabel \"$ylabel\""
17 command="$command; plot \"$0\""