I'm working on a Makefile.
version := v39.0.12.8 // format rules: va.b.c.d
I want to get "version_a" based on the format, which is "39" in this case. How to do this? Maybe via "sed/cut/awk but I'm not familar with these shell command.
e.g.
version version_a version_b version_c version_d
v39.0.12.8 39 0 12 8
v87.2.9.17 87 2 9 17
v142.98.77.68 142 98 77 68