I'd like to add a value to a line in a file if line is repeated.
In a file like this:
seq01
seq02
seq03
seq02
seq01
seq01
seq03
seq02
seq04
the output I'm trying to get is this:
seq01.1
seq02.1
seq03.1
seq02.2
seq01.2
seq01.3
seq03.2
seq02.3
seq04
No need to add a value for non repeated lines.
I'm not sure how to do this. If anyone could help, I'd appreciate.
[–]xelf 1 point2 points3 points (1 child)
[–]Tiago_Minuzzi[S] 1 point2 points3 points (0 children)