I'm really, really new to writing scripts, but have been asked to generate a report that will show available space for a disk, space used by particular subdirectories on the disk and totals. I can get the information I need with du and df and output it to a text file but I'm stumped as to how to format it.
The output I'm looking for should be similar to the attached text file (done because when I previewed my posting I lost all the formatting).
-and then repeating for each Database SID and each disk. Any tips will be greatly appreciated -better yet, if anybody has a script that does something similar that I could borrow and modify I'm certain it would improve your karma
Disk xxxx
Total Available xxxxx
Used:
<SID1>/archivelogs xxxxx
/database xxxxx
/exports xxxxx
/hot backup xxxxx
/cold backup xxxxx
Total Used <SID1> xxxxx
deleted attachment and pasted in post --oombera