sort -rg -k1d,1d -k3,3 -k4,4 -k7,7 run1 run2 >runs-sorted for i in 8000 4000 2000 1600 800 500 400 320 250 200 160 100 80 50 20 10; do grep "E 3 $i " runs-sorted >zE$i; done for i in 8000 4000 2000 1600 800 500 400 320 250 200 160 100 80 50 20 10; do grep "I 3 $i " runs-sorted >zI$i; done plot.gnu # gnuplot plot.gnu plot [100:0] \ 'zE8000' using 4:7 with lines title 'ENA 8000Hz', \ 'zI8000' using 4:7 with lines title 'IN1 8000Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE4000' using 4:7 with lines title 'ENA 4000Hz', \ 'zI4000' using 4:7 with lines title 'IN1 4000Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE2000' using 4:7 with lines title 'ENA 2000Hz', \ 'zI2000' using 4:7 with lines title 'IN1 2000Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE1600' using 4:7 with lines title 'ENA 1600Hz', \ 'zI1600' using 4:7 with lines title 'IN1 1600Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE800' using 4:7 with lines title 'ENA 800Hz', \ 'zI800' using 4:7 with lines title 'IN1 800Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE500' using 4:7 with lines title 'ENA 500Hz', \ 'zI500' using 4:7 with lines title 'IN1 500Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE400' using 4:7 with lines title 'ENA 400Hz', \ 'zI400' using 4:7 with lines title 'IN1 400Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE320' using 4:7 with lines title 'ENA 320Hz', \ 'zI320' using 4:7 with lines title 'IN1 320Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE250' using 4:7 with lines title 'ENA 250Hz', \ 'zI250' using 4:7 with lines title 'IN1 250Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE200' using 4:7 with lines title 'ENA 200Hz', \ 'zI200' using 4:7 with lines title 'IN1 200Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE160' using 4:7 with lines title 'ENA 160Hz', \ 'zI160' using 4:7 with lines title 'IN1 160Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE100' using 4:7 with lines title 'ENA 100Hz', \ 'zI100' using 4:7 with lines title 'IN1 100Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE80' using 4:7 with lines title 'ENA 80Hz', \ 'zI80' using 4:7 with lines title 'IN1 80Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE50' using 4:7 with lines title 'ENA 50Hz', \ 'zI50' using 4:7 with lines title 'IN1 50Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE20' using 4:7 with lines title 'ENA 20Hz', \ 'zI20' using 4:7 with lines title 'IN1 20Hz', \ pause -1 "Hit a key" plot [100:0] \ 'zE10' using 4:7 with lines title 'ENA 10Hz', \ 'zI10' using 4:7 with lines title 'IN1 10Hz', \ pause -1 "Hit a key"