dev

linux 에서 파일 비교하기

지렁이의야망 2016. 7. 6. 11:09

http://www.computerhope.com/unix/udiff.htm

위 링크에서 일부 발췌함.

자세한 내용과 옵션에 대한 예시 역시 링크에 가면 있음.



diff file1.txt file2.txt

...and the output will be:

2,4c2,4
< I need to run the laundry.
< I need to wash the dog.
< I need to get the car detailed.
---
> I need to do the laundry.
> I need to wash the car.
> I need to get the dog detailed.

참 쉽죠잉