I have a large data file containing some column of hours like shown below
0
0
0
0
0
1
1
1
1
2
2
3
3 ... ....
This data continues like this until 23 then starts from zero again, so what i want to do here is to pick the first value from every group of same number so that i have output like
0
1
2
3
4
5
. . .
23
0
1
...
and so on, i'm not sure if my question is clear, this seem to be easy but i have been struggling to do it. Please note that an hour can be reapeted any often.