- 论坛徽章:
- 0
|
[root@commserver: /tmp]#awk -F"|" '{for(i=$2;i<=$3;i++){printf ("%s|%d\n",$1,i)}}' test61.txt
AE199A2004A|2302000002026758
AE199A2004A|2302000002026759
AE199A2004A|2302000002026760
AE199A2004A|2302000002026761
AE199A2004A|2302000002026762
AE199A2004A|2302000002026763
AE199A2004A|2302000002026764
AE199A2004A|2302000002026765
AE199A2004A|2302000002026766
AE199A2004A|2302000002026767
AE199A2004A|2302000002026768
AE199A2004A|2302000002026769
AE199A2004A|2302000002026770
AE199A2004A|2302000002026771
AE199A2004A|2302000002026772
AE199A2004A|2302000002026773
AE199A2004A|2302000002026774
AE199A2004A|2302000002026775
AE199A2004A|2302000002067051
AE199A2004A|2302000002067052
AE199A2004A|2302000002067053
AE199A2004A|2302000002067054
AE199A2004A|2302000002067055
AE199A2004A|2302000002067056
AE199A2004A|2302000002067057
AE199A2004A|2302000002067058
AE199A2004A|2302000002067059
AE199A2004A|2302000002067060
AE199A2004A|2302000002067061
AE199A2004A|2302000002067062
AE199A2004A|2302000002067063
AE199A2004A|2302000002067064
AE199A2004A|2302000002067065
AE199A2004A|2302000002067066
AE199A2004A|2302000002067067
AE199A2004A|2302000002067068
AE199A2004A|2302000002067069
AE199A2004A|2302000002067070
AE199A2004A|2302000002067071
AE199A2004A|2302000002067072
AE199A2004A|2302000002067073
AE199A2004A|2302000002067074
AE199A2004A|2302000002067075
AE199A2004B|2302000002024016
AE199A2004B|2302000002024017
AE199A2004B|2302000002024018
AE199A2004B|2302000002024019
AE199A2004B|2302000002024020
AE199A2004B|2302000002024021
AE199A2004B|2302000002024022
AE199A2004B|2302000002024023
AE199A2004B|2302000002024024
AE199A2004B|2302000002024025 |
|