When I use the cut command, everytime I get a different result which makes sense. So I wonder how to get the answer similar to this but consistent across different Ubuntu nodes?
ubuntu@ip:~/aws_script$ df -h / | grep '/dev'
/dev/xvda1 32G 21G 9.8G 68% /
ubuntu@ip:~/aws_script$ df -h / | grep '/dev' | cut -d' ' -f13
9.8G
I really don't care what command you would use if not cut as long as it gets the job done deterministically.