I'd like to extract the 2nd field and transpose it to become a row
cat > temp1
My approach :
cut -f2 temp1 | tr '\n' '\t' > temp2
The result :
73 74 75
Understandably, there is a tab separator at the right end of the line but missing a new line character. Is there an simple one-liner to fix this?