"리눅스 diff"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
4번째 줄: 4번째 줄:
*행 단위 파일 비교 명령어
*행 단위 파일 비교 명령어


<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# cat 1.txt
[root@jmnote ~]# cat 1.txt
hello
hello
12번째 줄: 12번째 줄:
World!
World!
</source>
</source>
<source lang='dos'>
<source lang='cli'>
[root@jmnote ~]# diff 1.txt 2.txt
[root@jmnote ~]# diff 1.txt 2.txt
1,2c1,2
1,2c1,2

2015년 2월 6일 (금) 03:35 판

1 개요

diff
/usr/bin/diff
  • 행 단위 파일 비교 명령어
[root@jmnote ~]# cat 1.txt
hello
world
[root@jmnote ~]# cat 2.txt
Hello
World!
[root@jmnote ~]# diff 1.txt 2.txt
1,2c1,2
< hello
< world
---
> Hello
> World!

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}