2013-04-29 96 views

回答

3

使用cutpaste

paste -d ' ' <(cut -d ' ' -f 1 file1) file2 

输出:

$ paste -d ' ' <(cut -d ' ' -f 1 file1) file2 
10 obama 
20x clinton 
30 nixon 
+2

你也可以做'切-d”'-f1 IN1 |粘贴-d'' - in2' – perreal 2013-04-29 01:13:18

相关问题