What commands does linux have to display the results vertically?

for example, the following result is horizontal

 /usr/java/jdk1.8.0_51/bin/jstat -gc 24954 
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT   
2048.0 2048.0 1675.5  0.0   790528.0 106496.7  462848.0   317451.4  191128.0 181061.6 21160.0 19614.7    512   11.773   5      5.595   17.368

I want it to be displayed vertically, which is

    S0C 2048.0
    S1C 2048.0
    ...
    
    
Sep.16,2021

use the rs command to transpose the line example

jstat -gc 36958 |rs -T
S0C      0.0
S1C      4096.0
S0U      0.0
S1U      4096.0
EC       64512.0
EU       45056.0
OC       62464.0
OU       48041.5
MC       43548.0
MU       40744.4
CCSC     5196.0
CCSU     4293.5
YGC      22
YGCT     1.494
FGC      0
FGCT     0.000
GCT      1.494

Mac OS rs is installed by default.
Ubuntu can be installed through sudo apt install rs .


the rs command upstairs is very good. If there is no rs command, you can implement it through awk:

jstat -gc 24954|awk '{for(n=0;nPP<NF;)a[n]=a[n]?a[n]FS$n:$n}END{for(n=0;nPP<NF;)print a[n]}'
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e983a5-16be.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e983a5-16be.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?