i have a number which i want to do percentile match and want the correct number in front of that with awk
Table 1
mobile
9594047891
9895943283
9967545384
9594028790
Table 2
display
4047891
95943283
545384
28790
out put needed
display Output
404789 9594047891
95943283 9895943283
545384 9967545384
28790 9594028790
It will be of great help if any awk specialist can solve this
i am trying to match the number which is of 10 digit with the number which is less than 10 digit
It seems like the short number matches the end of the long one, so you can do something like this: