in reply to Re^4: Sorting Text File for HTML Output
in thread Sorting Text File for HTML Output

Yes, that's a good point! I initially assumed michael.kitchen was putting the dd somewhere in the middle of the code like I did in my example, but of course you're right that if it happens before the header, that'll be the problem.