Hi,
I have a data file with 2 different strings, named as CON and ICON. How to turn the value of each line to integer that work as a counter for each change of string name? For example:
Number of lines with the same string is not fixed. Attached is the file I use as input where I want to add a new column on the right for the counter in the output file.
I have a data file with 2 different strings, named as CON and ICON. How to turn the value of each line to integer that work as a counter for each change of string name? For example:
Code:
string counter -------------------------------- POINTS_CON 1 POINTS_CON 1 POINTS_ICON 2 POINTS_ICON 2 POINTS_ICON 2 POINTS_CON 3 POINTS_ICON 4 POINTS_CON 5 POINTS_CON 5
Comment