如由:a1a2b1b2变为a1 b1a2 b2
cat filenamea1a2a3b1b2b3c1c2c3变为a1 b1 c1a2 b2 c2a3 b3 c31.cat filename|sort -nk 1.2 | xargs -n32.split -ls filename;ls x*|xargs -n3|while read i;do paste $i -d' ';echo +++++++++++;done;rm x*
原文转自:http://www.ltesting.net