sorting - Bash: sort numbers with exponents -


i trying sort 1 file numeric values this:

414e-05 435e-05 0.5361 0.7278 0.1341 0.9592 0.2664 

with sort numers sorted except ones exponent, there way sort function evaluate expression?

if version of sort command new enough, should support -g option (or --general-numeric-sort) if options long). described in info manual:

sort numerically, using standard c function strtod convert prefix of each line double-precision floating point number. allows floating point numbers specified in scientific notation, '1.0e-34' , '10e100'.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -