(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; } }
In reply to Re: Re-ordering data in data file
by graff
in thread Re-ordering data in data file
by Lhamo_rin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |