--- /dev/null
+#!/bin/bash
+
+# Script to plot .dat files
+
+title=$(grep "# Title: " $0 | sed 's/# Title: //g')
+labels=$(grep "# Format: " $0 | sed 's/# Format: //g')
+
+x=1
+ylabel="Counts"
+toplot="2 3 5"
+style="l"
+
+xlabel=$(echo $labels | tr " " "\n" | head --lines=$x | tail --lines=1)
+command="set title \"$title\""
+command="$command; set xlabel \"$xlabel\""
+command="$command; set ylabel \"$ylabel\""
+command="$command; plot \"$0\""
+
+for y in toplot; do
+ command="$command
+
+
+
+