I am trying to do a very basic thing, which I though I should be able to manage all on my own, but alas.. 

What I am attempting to do, is to get hold of the values returned by "df -h", and to be able to store these values in a bash script array. The purpose is to combine it with other data (like the current timestamp) and output this to a new file/overwrite an existing file. 

The following two commands give me what I want on the commandline, but I cannot for the life of me load the output into an array that I can iterate over.

The followng gives me the disk utilization in percent for each disk: 

df -h | grep -vE "^Filesystem|shm|boot" |  awk '{ print +$5 }'


And the following gives me the disk path: 

df -h | grep -vE "^Filesystem|shm|boot" |  awk '{ print $6 }'


However, I am unable to assign the output of this into a variable inside a shell script that I can iterate over. 

ANY ideas and help would be very much appreciated!!


Question: Domestic Partnership Health Insurance and Tax implications
Answer: Domestic partnerships were invented for people who cannot get legally married (same-sex couples). While you can become domestic partners as a hetero couple, I can't see why would you want to (although I'm not a lawyer, talk to a family lawyer on these matters).

The main difference between domestic partnership and marriage is the Federal recognition. You can only get tax benefits and immigration benefits if you're married (and that's a major reason why many gay people are so upset about not being able to). RDP's are not legally married, so they don't get the Federal benefits that married couples do.

Why does it matter to you? Because the insurance is a benefit. You pay it pre- tax from your wages. But if you want it to cover your partner, and you're not married - it is taxed. So the insurance coverage provided by your employer to your partner is taxable income to you, unless you're married.

In addition, RDP's from one state may not be recognized in another (if the RDP definition is different or the state doesn't allow RDP's), and benefits may differ.

Check with a lawyer proficient in family law, I'm not a lawyer. I'm not a tax professional either - for tax issues talk to a EA or a CPA licensed in your state.