Script for disk space in MB and GB

All,

I will admit I am not a good script writer (yet!) and need some help creating a script. I need to get the output from df -k and get the kbytes/used/available for each filesystem output to a file, then have the kbytes calculated into MB/GB.

Any help or ideas would be great!

Thanks!

[312 byte] By [Kevin_Baumann] at [2007-11-26 6:43:28]
# 1
What OS version?
Lee_McCreery at 2007-7-6 15:00:39 > top of Java-index,General,Talk to the Sysop...
# 2
If you are using Solaris 9 or 10, you are in luck. With those, you can use df -h, like linux, and get a output in MB/GB.If not, well, there are a few ways you can do this, but before we go into it, do you have Solaris 9 or 10? :)
Codename47 at 2007-7-6 15:00:39 > top of Java-index,General,Talk to the Sysop...
# 3
Sorry, I am using Solaris 8
Kevin_Baumann at 2007-7-6 15:00:39 > top of Java-index,General,Talk to the Sysop...
# 4
Saw this a bit ago: http://www.sun.com/bigadmin/jsp/descFile.jsp?url=descAll/dfh__disk_space_disLooks like just what you want.
Red_Oregon at 2007-7-6 15:00:39 > top of Java-index,General,Talk to the Sysop...
# 5
Great. Thanks all
Kevin_Baumann at 2007-7-6 15:00:39 > top of Java-index,General,Talk to the Sysop...