#!/bin/sh

# writes the results of the raw2lum programme (*.td files) 
# together with some lines from files made by jhead (*.txt)
# into a single file

for F in *.td
 do sed -n "1s/^/\\
/p; 6p; 8N; 9s/\n/\;    /; 9s/(.*$//p
 11N; 12N; 13s/\n/\;    /gp " ${F/\.*/.txt} >> info.txt 
 tail -n 17 $F >>info.txt
done

