Your spec is a little bare, I'm not sure I follow the criteria you are using to remove the records indicated, could you outline why the records above should be removed.
Your workings are also a little threadbare, what have you tried and what does it fail to do?
this records is use for some geographical work!
i have geographical software i have to upload this records in that software , but that software allows only ascending order number . so , in that file some of the place having descending order number . i want to print only ascending order lines.
is there any solution to fix this .
But this above script is printing as it is not removing that descending order line , is there any other command to solve this problem this values r creating velocity so it shouldn't decrease value so i want to remove that line . i can remove manually but near 2000000 lines & more than thousand files r there :\(
the following works for me, though you may have to modify it to your specific needs (open the file directly, allow for spaces at the start of the record and other sanity checks etc...