2029 $ echo "aaa 3 1-2-3-4-5" | awk '{n=split($3,a,"-");for(i=1;i<=n;i++)print $1,$2,a[i]}'
aaa 3 1
aaa 3 2
aaa 3 3
aaa 3 4
aaa 3 5
2029 $ echo "aaa 3 1-2-3-4-5" | awk '{n=split($3,a,"-");for(i=1;i<=n;i++)print $1,$2,a[i]}'
aaa 3 1
aaa 3 2
aaa 3 3
aaa 3 4
aaa 3 5