Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

jagne kvrj, ngochan1126@hotmail.­com, a asdfghjhhjjkl', cvezrtg, chink chinese frankies, lambhead@rocketmail.com, priwalfdept77@yahoo.de, from scipy.optimize import minpack2 ImportError: DLL load failed: 找不到指定的模块。, yamlå, adfghjshjklç

Links

XODOX
Impressum

#1: [问题]两个文件求交集

Posted on 2012-09-03 13:14:13 by 罗马di狼

ç®åæ两个æ件a,bãa大约æå ç¾è¡ï¼b大约æ400,000,000è¡ã两个æ件çæ ¼å¼ä¸æ ·ï¼é½ä¸ºkey valueã

ç°å¨éè¦æ ¹æ®keyæ±è¿ä¸¤ä¸ªæ件ç交écï¼å³æ¾åºkeyç¸åçãcçè¾åºæ ¼å¼ä¸ºkey valueA valueBã

æçå½ä»¤å¦ä¸ awk 'ARGIND==1 {a[$1]=$0} ARGIND>1 && ($1 in a) {print a[$1], $2}' a b > c

æçè¿ä¸ªéè¦4åéæè½æå®ï¼è¯·é®å¤§çï¼è½å¦æä¾æ´é«æçï¼
--

â» æ¥æº:ã»æ°´æ¨ç¤¾åº http://newsmth.netã»

Report this message