試著突破低點,往高點邁進
awk ' { for (i=1; i<=NF; i++) { a[i] = a[i] ? a[i] " " $i : $i } } END { for (i=1; i<=length(a); i++) { print a[i] } } ' file.txt