I have a file with ~1000 rows here is the first few rows:
head file.regions.txt
cregions1
cregions2
cregions3
cregions4
cregions5
cregions6
cregions7
cregions8
cregions9
cregions10
...
I want to add brackets around the numbers and also "<-" for each row after numbers! This is my desired output
head file.regions.output.txt
cregions[1] <-
cregions[2] <-
cregions[3] <-
cregions[4] <-
cregions[5] <-
cregions[6] <-
cregions[7] <-
cregions[8] <-
cregions[9] <-
cregions[10] <-
...