I am taking input as memory ex. 10M or 50G or 50 K
and I want to check this much size available in file system. for that I'm using df -h command
df -Ph . | awk 'NR==2 {print $4}' I am getting 140M and my input may vary like 10k , 10M and 10G
EX:
my input is 20G and available memory in filesystem is 140M
So now how can I compare these two sizes (50G >140M ?) and echo output result.