error in displaying filesystem %

Hi,

The below command is expected to display the filesystem along with the used % and available % in each of the filesystem in the linux box.

df -k / | grep -v 'capacity' | gawk '{ print $5 }'

But instead of displaying the actual used %, it is showing as 'Use%'.

Could anyone please let me know how to rectify this error?

why the / in

df -k / 

without that, you get a list of percent entries.

Please post the unfiltered output from:

df -k /

Bet it's got headings different from your "grep -v".

Please also post your expected output (your post mentions the filesystem name and two percentage figures but the "gawk" only selects one column).