I have a file that contains some data in column format, for example:
219m
219m
3.9g
3.9g
4.0g
4.0g
4.1g
4.1g
4.2g
4.2g
4.2g
I want to compare the data and find the greatest value of these. Here g stands for GB and m stands for MB. How would I find the greatest number using a Linux shell script?
units
man page.