- 论坛徽章:
- 0
|
awk 'BEGIN{FS="[,;/]"}NR==FNR{a[$1]=$1}NR>FNR{print $2}' b file3
这样获取的FILE3的$2是
05766798607
05767158557
匹配的只是这两个值,我需要能匹配到后面的值
10/05766798607,11/20050325191329,29/0.1,14/05766798607
10/05767158557,11/20050325191329,29/0.08,14/05767158557
就是说,如果我FILE3包含4列
10/05766798607,11/20050325191329,29/0.1,14/05766798607
10/05767158557,11/20050325191329,29/0.08,14/05767158557
10/05766798607,11/20050325191329,29/0.1,14/05766798608
10/05767158557,11/20050325191329,29/0.08,14/05766798609
程序应该是匹配出1,3,4行,而不是地1行 |
|