I have a script that checks the available disk space on a few servers. It calculates the total drive capacity, free space, used space, used %, and free %. I want to be able to print this out in table format so that it looks like this...
Server Drive Total Used Free %Used %Free
ServerA C 60.0 30.0 30.0 50% 50%
Each server is listed in an array and a foreach loop goes to each one and calculates each of the above. How can I make this print in a neat, table format like above? I basically want to say "print $Used on the 32nd space and then print $Free on the 44th space", for example.
Thanks,
Chris
Server Drive Total Used Free %Used %Free
ServerA C 60.0 30.0 30.0 50% 50%
Each server is listed in an array and a foreach loop goes to each one and calculates each of the above. How can I make this print in a neat, table format like above? I basically want to say "print $Used on the 32nd space and then print $Free on the 44th space", for example.
Thanks,
Chris