Skip to content
Advertisement

How to find a postion of the lowest value in the file?

How to output position of a line with the lowest value inside?

I have a file with data like below:

JavaScript

I need to find a lowest value from the last column and return its position

Advertisement

Answer

You can use this command in order to get only the line number where the value is shown(if the value appears more than one time then it will give several line numbers):

JavaScript

in order to see the line with the lowest value and it’s line number use this command:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement