1:47pm, Tuesday 26 October 2004 (Updated 9:21pm, Tuesday 26 October 2004)
sed '0~2d' test > $$.1 ; sed '1~2d' test > $$.2 ; \ paste -d ' ' $$.1 $$.2 ; rm $$.1 $$.2Optimisations welcomed. I'd particularly like to get it all into a single
sedcall without using temporary files.
sed -n 'N; s/\n/ /; p' testFab, a one-liner. Unfortunately the shorter
sed 'N; s/\n/ /' testbehaves differently with GNU sed and Tru64 sed. :-(