I want to extract the last two field values ββfrom a variable variable length. For example, consider the three values ββbelow:
fe80::e590:1001:7d11:1c7e ff02::1:ff1f:fb6 fe80::7cbe:e61:f5ab:e62 ff02::1:ff1f:fb6
These three lines are of variable length. I want to extract only the last two field values ββif I split each row into a separator:
That is, from three lines I want:
7d11, 1c7e ff1f, fb6 ff1f, fb6
Can this be done with split() ? I have no ideas.
learner
source share