in reply to Re-ordering data in data file
(This is based on your later clarification that the records themselves do not need to be re-ordered according to the original record numbers before assigning the new sequential record numbers.){ local $/ = "}\n"; while (<>) { s/^"\d+"/"$."/; print; } }
|
|---|