0
I have a file where I need to add 200 more lines, but I'd like to know how to renumber them automatically. The file has the following structure:
col1\tcol2\tdb4444\tcol4\tcol5\tcol6\tcol7\tcol8\tcol9\tcol10\n
col1\tcol2\tdb4445\tcol4\tcol5\tcol6\tcol7\tcol8\tcol9\tcol10\n
col1\tcol2\tdb4446\tcol4\tcol5\tcol6\tcol7\tcol8\tcol9\tcol10\n
...
Where \t is the tab, db is written before the number, the other columns are represented by col and finally \n is the line break, in this case, counter must be in the 3rd column and associated with db. The first line should start from the next number. It can be a bash command.
Thank you for your attention!
1I do not know where to start trying. – Primo – 2019-07-02T18:50:53.843
Yes, I know there are not many, but these 200 are just the first of many others. – Primo – 2019-07-02T19:11:30.063