Here's my output.
YZ_DISKPOOL 0.0 0.0
XYZ_123_789_DISKPOOL 44.0 43.6
UX_DISKPOOL 0.3 0.0
UNIX_DISKPOOL 0.0 0.0
UNIX2_DISKPOOL 0.0 0.0
UNIX3_DISKPOOL 0.5 0.0
I'm taking input which is comma delimited and feeding it to
| awk -F',' '{print $1,"\t\t"$4,"\t"$5}'
Because the first and second lines are different ( too short and too long ), tabs are doing what I hoped.
Is there a way to do this so the output lines up regardless of length of the first column? To a point of course. Let's assume that XYZ_123_789_DISKPOOL will be the longest in the first field and YZ_DISKPOOL will be the shortest.
Can I start my output for the 2nd column at a certain point so that it is aligned on the left, then a tab, then the 3rd column of data?
Trying to combine awk and printf to get my output, but I keep butchering it.
YZ_DISKPOOL 0.0 0.0
XYZ_123_789_DISKPOOL 44.0 43.6
UX_DISKPOOL 0.3 0.0
UNIX_DISKPOOL 0.0 0.0
UNIX2_DISKPOOL 0.0 0.0
UNIX3_DISKPOOL 0.5 0.0
I'm taking input which is comma delimited and feeding it to
| awk -F',' '{print $1,"\t\t"$4,"\t"$5}'
Because the first and second lines are different ( too short and too long ), tabs are doing what I hoped.
Is there a way to do this so the output lines up regardless of length of the first column? To a point of course. Let's assume that XYZ_123_789_DISKPOOL will be the longest in the first field and YZ_DISKPOOL will be the shortest.
Can I start my output for the 2nd column at a certain point so that it is aligned on the left, then a tab, then the 3rd column of data?
Trying to combine awk and printf to get my output, but I keep butchering it.