Am trying to write a script that involves the use of df -k to work out filesystem usege.
this is were the problem is
basically
df -k |awk '/\// {print $5}' this produced the
following.
80%
90%
50%
60%
which is want I wanted but I also want
to remove the % sign.
I have tried df -k | grep "%" |awk '{printf("%s\n", $5)}' but this just produced the same output
I have search the forum for help but no joy
can you please help