When I run df -h I see:
/dev/sda2 46G 3.2G 41G 8% /
udev 24G 4.0K 24G 1% /dev
tmpfs 9.5G 10M 9.5G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 24G 0 24G 0% /run/shm
/dev/mapper/DG9999-lvDG9999 82T 75T 7.5T 91% /DG9999
/dev/sda3 20G 445M 19G 3% /home
clamfs 82T 75T 7.5T 91% /DG9999/clamfs
I'm using this command:
df -h / | grep -v Filesystem | awk '{print $5}' | sed 's/%//g'
At the moment the output shows me the 5th column in the first line of the df -h output which is 8. How can I specify that I am interested in the 6th line of the output so that the output shows 91.
Thanks
df -hand then try to parsedf -h /(which restricts it to the filesystem hosting '/')