I have large file with many information
939112 how is build on floor 3 63044 2022-01-17 13:23:25.891139
939113 how is build on floor 1 63044 2022-01-17 13:23:25.891139
939114 how is build on floor 2 63044 2022-01-17 13:23:25.891139
I want to remove all other things but first number using regex on vim? how can I do it. I can search all digits numbers and remove them, but I want to keep digits and only remove after those digits string.
s/^\d*//g
I am expecting output
939112, 939113, 939114
or
939112
939113
939114