
파일 1:
1234567890123456,00,00,000
1111111111111111,11,11,1111
파일 2
1111111111111111,11,11,1111
9999999999999999,99,99,999
그래서 저는 파일 1의 내용이 파일 2의 내용인지 알고 싶습니다.
산출:
1111111111111111,11,11,1111
답변1
다음 명령을 사용하여 문제를 해결할 수 있었습니다.
grep -Fxf file1 file2