I have a list
P590-AAAc-123
P590-BBBcc-123
P520-CCCc-123
P590-DDDccc-123
P550-EEEc-123
That I would like to format the following way
P590-AAAc-123 P590-BBBcc-123 P590-CCCc-123
P590-DDDccc-123 P590-EEEc-123
So far I've got
$SSHU $HMC -l $HMCUSER lssyscfg -r sys | awk -F, '{print $1}'|sed s/^name=//|tr '\n' ','
Which gives me AAA,BBB,CCC,DDD,EEE
Can't for the life of me get it into formatted columns tried /t in the tr but because of the different lengths the columns look a mess.
Ideas anyone?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."
P590-AAAc-123
P590-BBBcc-123
P520-CCCc-123
P590-DDDccc-123
P550-EEEc-123
That I would like to format the following way
P590-AAAc-123 P590-BBBcc-123 P590-CCCc-123
P590-DDDccc-123 P590-EEEc-123
So far I've got
$SSHU $HMC -l $HMCUSER lssyscfg -r sys | awk -F, '{print $1}'|sed s/^name=//|tr '\n' ','
Which gives me AAA,BBB,CCC,DDD,EEE
Can't for the life of me get it into formatted columns tried /t in the tr but because of the different lengths the columns look a mess.
Ideas anyone?
Mike
"Whenever I dwell for any length of time on my own shortcomings, they gradually begin to seem mild, harmless, rather engaging little things, not at all like the staring defects in other people's characters."