The input file:
vnic10
e1000g1
e1000g2
vnic10
blablabla888blablablabla999blabla
Output needed:(Only the numbers in each line)
10
1000 1
1000 2
10
888 999
We can do this using sed and remembered patterns. I am looking for the logic to get this done using awk/nawk and ksh commands.