I Have a huge file (50000 rows) looks like :
input.txt:
123315334262625363534
265343426272282827262
224343536625242536363
635352627273635373732
363353533637383838327
635342422325337474524
I want to add row numbers as the first column at the beginning of the file while each number repeated two times:
1 123315334262625363534
1 265343426272282827262
2 224343536625242536363
2 635352627273635373732
3 363353533637383838327
3 635342422325337474524
any suggestion please?