autoIncrement()
rec=0 def autoIncrement(): global rec pStart = 1 # adjust start value, if req'd pInterval = 1 # adjust interval value, if req'd if (rec == 0): rec = pStart else: rec = rec + pInterval return rec
Import-Csv .\MCO_LEO_TrackPoints.csv | Sort-Object seq | Export-Csv .\MCO_LEO_TrackPointsSort.csv -NoTypeInformation