min and max in certain lines of input file with the tag of line number
问题 I want to find the minimum between the line number 2000 and 3000. I want to find the minimum and maximum of the values and when the minimum and maximum are found , I also need to find the line on which it was found. Then I want to go to one line above the maximum or minimum containing line and output the first integer out of the 6 integers on the same line. My input is of the following form. *KEYWORD $TIME_VALUE = 1.4000002e+001 $STATE_NO = 15 $Output for State 15 at time = 14 *ELEMENT_SHELL