Bash(awk) - comparing decimal values from file

  • Thread starter Thread starter Tree55Topz
  • Start date Start date
T

Tree55Topz

Hello! I am new to bash programming, and I have messed around with integers and matrices, but I am curious if doubles can be used. lets say I have a file like...

14.23 15.10 10.90

Now I want to find the smallest DECIMAL value of these and print it out. So 15.10 would be the printout. Can I write a bash script for this? I would like to use awk because I feel it is the easiest.

Continue reading...
 
Back
Top