- 论坛徽章:
- 0
|
原帖由 twfcc 于 2009-11-2 11:01 发表 ![]()
sorry, #2 wrong
awk 'FILENAME=="a"{s[FNR]=$0};FILENAME=="b"{x[FNR]="={" $0 "};"}END{for(j=1;j
[root@localhost home]# awk 'FILENAME=="name_nu.h"{s[FNR]=$0};FILENAME=="series_code_un.txt"{x[FNR]="={"$0"};"}END{for(j=1;j<=NR;j++){print s[j] x[j]}}' name_nu.h series_code_un.txt
}; 1char f1[0xf4 0x09 0xf4
}; 2char f2[0xf3 0x09 0xf3
}; 3char f3[0xf5 0x09 0xf5
}; 4char f4[0xed 0x09 0xed
}; 5char f5[0xf6 0x09 0xf6
}; 6char f6[0xee 0x09 0xee
}; 7char f7[0x76 0x09 0x76
}; 8char f8[0xef 0x09 0xef
}; 9char f9[0xf8 0x09 0xf8
still wrong |
|