I have a file which contains node names and the number of bytes backed up. I would like to calculate the total number of bytes and add it to the output file. A sample of the output is shown below. The values are in bytes, KB, MB, and GB. What would be the best way to go about doing this? Any help would be greatly appreciated.
NODE1 1.02 GB
NODE2 320.55 MB
NODE3 0 B
Thanks,
John
NODE1 1.02 GB
NODE2 320.55 MB
NODE3 0 B
Thanks,
John