Code:
root@bt:/tmp# awk -F"," '
> {
> printf $1 FS
> for(i=2;i<=NF;i++)
> {
> if(!match($i,"/")){
> printf $i FS
> continue
> }
> split($i,arr,"/")
> a=arr[1]; b=arr[2]
> if(arr[1]>arr[2])
> {
> num=substr(arr[1], 1, length(arr[1])-length(arr[2]))
> b=num arr[2]
>
> }
> for(j=a;j<=b+0;j++)
> {
> printf " "j FS
> }
> }
> printf "\n"
> }' input_file
serv1a, 32, 41, 42, 43, 44, 45, 46, 47, 53, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 108, 109, 110, 111, 113.,
serv1b, 1, 2, 114, 115, 116, 117, 118, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
139, 140, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 159, 160, 161, 162, 163, 164,,
serv2, 255, 256, 274, 275, 276, 277, 763, 774, 775, 777, 1434, 1435, 1444, 1445, 1446, 1447, 1448, 1449, 1450,
1715, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2048.,
serv10b, 804, 808, 929, 930, 931, 932, 940, 941, 942, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988,
989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009,
1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1240, 1241, 1246, 1254, 1255, 1256, 1353,
serv11, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513,
514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537,
538, 674, 675, 403, 404, 405, 406, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1510, 1511, 1512, 1513, 1514, 1515,
1516, 1517, 1518, 1519, 1530, 1531, 1532, 1533, 1534, 1535, 1536, 1537, 1613, 1614, 1615, 1616, 1617, 1618,
serv1a, 255, 256, 274, 275, 276, 277, 763, 774, 775, 777, 1434, 1435, 1444, 1445, 1446, 1447, 1448, 1449, 1450,
1715, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2048.,
serv3, 804, 808, 929, 930, 931, 932, 940, 941, 942, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990,
991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012,
1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1240, 1241, 1246, 1254, 1255, 1256, 1353,
serv4b, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514,
515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 674,
675, 927, 928, 483, 484, 485, 486, 487, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533,
534, 535, 536, 537, 538, 674, 675, 681, 682, 683, 684, 685, 689, 690,.,
serv5, 1044, 1045, 1046, 1047, 483, 484, 485, 486, 487, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529,
530, 531, 532, 533, 534, 535, 536, 537, 538, 674, 675, 681, 682, 683, 684, 685, 689, 690,
serv6, 39, 40, 54, 55, 80, 82, 83, 84, 85, 123, 124, 256, 264, 265, 266, 267, 268, 269, 270, 275, 276, 332, 333, 334, 335,
336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360,
361, 362, 363, 364, 365, 366, 367, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380,
serv8, 1044, 1045, 1046, 1047, 483, 484, 485, 486, 487, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504,
505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529,
530, 531, 532, 533, 534, 535, 536, 537, 538, 674, 675, 681, 682, 683, 684, 685, 689, 690, 810, 839,
serv9a, 255, 256, 274, 275, 276, 277, 763, 774, 775, 777, 1434, 1435, 1444, 1445, 1446, 1447, 1448, 1449, 1450, 1715,
2025, 2026, 2027, 2028, 2029, 2030, 2031, 2048.,