I am trying to find out the decrements in a column and if found then print the last highest value.
For example:
From 111
to 445
there is a continous increment in the column.But 333
is less then the number before it.
111 aaa
112 aaa
112 aaa
113 sdf
115 aaa
222 ddd
333 sss
333 sss
444 sss
445 sss
333 aaa<<<<<<this is less then the number above it (445)
If any such scenario is found then print 445 sss