Suppose $2 is my variable. I have tried going from
awk -F, '{print $2 ":"}'
to
awk -F, '{print gsub(/[ ]+$/, "", $2) ":"}'
But it goes from printing something to printing nothing at all.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…