Join

ph
Admin (토론 | 기여)님의 2017년 4월 4일 (화) 04:00 판 (새 문서: <code>sort <no options> | join <no options></code> doesn't work: Important: FILE1 and FILE2 must be sorted on the join fields. E.g., use ` sort -k 1b,1 ' if `join' has no options,...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색

sort <no options> | join <no options> doesn't work:

Important: FILE1 and FILE2 must be sorted on the join fields.  E.g.,
use ` sort -k 1b,1 ' if `join' has no options, or use ` join -t  ' if
`sort' has no options.

So you could try:

sort flash_int_list.txt | join -t  finish_comm - > t1

or:

sort -k 1b,1 flash_int_list.txt | join finish_comm - > t1

[1]