2017-01-09 This is how you reorder every pair of two lines, thus going from 1,2,3,4,... to 2,1,4,3,...: [0] sed -n 'h;n;G;p' Here Perl impressed me much: [1] perl -pe '$_=<>.$_' How elegant! Btw: This is valid sed: sed 'super sed fun for you' Maybe we should start writing poems in sed as well, not only in Perl. [0] https://debianforum.de/forum/viewtopic.php?f=34&t=163552&start=15#p1116775 [1] https://debianforum.de/forum/viewtopic.php?f=34&t=163552&start=15#p1117139 http://marmaro.de/lue/ markus schnalke