Guest_imported
New member
- Jan 1, 1970
- 0
Hi all,
I have a file that looks like this:
2123 A C D
2123 A B C
2123 B C C
2124 B A D
2124 B D C
2124 B C C
I would like to add a field ( field2) with a sequential number depnding on value in field 1.
I would like to get this:
2123 1 A C D
2123 1 A B C
2123 1 B C C
2124 2 B A D
2124 2 B D C
2124 2 B C C
can any awk guru help?
Thanks
I have a file that looks like this:
2123 A C D
2123 A B C
2123 B C C
2124 B A D
2124 B D C
2124 B C C
I would like to add a field ( field2) with a sequential number depnding on value in field 1.
I would like to get this:
2123 1 A C D
2123 1 A B C
2123 1 B C C
2124 2 B A D
2124 2 B D C
2124 2 B C C
can any awk guru help?
Thanks