还是全部放进gawk里吧,参考下面的- BEGIN{
- for(i=1;i<1799;i++){
- for(j=1;j<8;j++){
- dictxt=sprintf("d:\\HY\\%06d\\%06d_%d.txt",i,i,j);
- reptxt=sprintf("e:\\ZD\\GD\\%06d\\%06d_%d.txt",i,i,j);
- while(getline <reptxt){
- split($0,sp,"=");
- 处理替换文本;
- }
- while(getline <dictxt){
- split($0,sp,"=");
- 处理字典文本;
- }}
- 统计并提取重复N次的字符;
- 打印输出;
- }}
复制代码
|