- @echo off
- echo {>yiwuyun.txt
- echo sub1=$0>>yiwuyun.txt
- echo where=match($0,/(firmware\([^^()]*\))/,arr)>>yiwuyun.txt
- echo if (where!=0){>>yiwuyun.txt
- echo while(where!=0){>>yiwuyun.txt
- echo print arr[1]>>yiwuyun.txt
- echo sub1=gensub(/(firmware\([^^()]*\))/,"",1,sub1)>>yiwuyun.txt
- echo where=match(sub1,/(firmware\([^^()]*\))/,arr)>>yiwuyun.txt
- echo }>>yiwuyun.txt
- echo }else{print "no"}>>yiwuyun.txt
- echo }>>yiwuyun.txt
- gawk -f yiwuyun.txt a.txt
- if exist yiwuyun.txt del yiwuyun.txt
- pause
复制代码
|