[Solved] How to process this text [closed]


You could simply do this through awk,

$ awk -F[,-] '{var=$1"-"$2; for (i=3;i<=NF;i++){print var"-"$i}}' file
86-22-63385835
86-22-63385836
86-22-63385933
86-0577-88609993
86-0577-88835386 
86-21-58947602
86-21-58947603
0086-755-33186858
0086-755-33186862
0086-755-33186859

2

solved How to process this text [closed]