Another thing you could check is the following df options:
'-P'
'--portability'
Use the POSIX output format. This is like the default format
except for the following:
1. The information about each file system is always printed on
exactly one line; a mount device is never put on a line by
itself. This means that if the mount device name is more than
20 characters long (e.g., for some network mounts), the
columns are misaligned.
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE ae971fc838f54fc1bfd426c8497afd38 (/dev/asm-disk1) [DATA]
Located 1 voting disk(s).
this should be somewhat similar to the scripting for df -h provided previously - definitely not the same, but the concepts should be the same.
I believe the output is from running crsctl query css votedisk mentioned here.
Where this command has a similar -P option as the df does, it should be in the manual (if that is your question).
Could you post a "the similar script as above", please.
What is "broken"?
P.S. just ran your awk script against your NEW sample data - it looks like it creates the html file that the browser displays exactly like you quoted above.
What's broken?
i dont think the script is broken, its just that format the output to fit the table nicely. The table includes the "--------" and "located 1 voting disk", just wondering is there a way to not include those two.