- 论坛徽章:
- 93
|
过了3/4天了,不知道还急不急。
请lz附耳过来,如此如此,这般这般:- [seesea@UC temp]$ while read a b; do echo "insert into jackbillow values(inet_aton('$a'),inet_aton('$b'),'A','','');"; done < <(paste a.txt b.txt);
- insert into jackbillow values(inet_aton('1'),inet_aton('a'),'A','','');
- insert into jackbillow values(inet_aton('2'),inet_aton('b'),'A','','');
- insert into jackbillow values(inet_aton('3'),inet_aton('c'),'A','','');
- insert into jackbillow values(inet_aton('4'),inet_aton('d'),'A','','');
- insert into jackbillow values(inet_aton('5'),inet_aton('e'),'A','','');
- [seesea@UC temp]$
- [seesea@UC temp]$ cat a.txt
- 1
- 2
- 3
- 4
- 5
- [seesea@UC temp]$ cat b.txt
- a
- b
- c
- d
- e
复制代码 |
|