Hi I am looking for a command line solution to replace the '1' value in each line I have with ascending values. My input looks like:
K X 1
K X 1
K X 1
K X 1
K X 1
K X 1
K X 1
K X 1
K X 1
K X 1
and I would like the output to be
K X 1
K X 2
K X 3
K X 4
K X 5
K X 6
K X 7
K X 8
K X 9
K X 10
Any help would be much appreciated.
Thanks