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

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
잔글 (봇: 자동으로 텍스트 교체 (-==참고 자료== +==참고==))
 
43번째 줄: 43번째 줄:
*[[리눅스 diff]]
*[[리눅스 diff]]


==참고 자료==
==참고==
*http://invisible-island.net/diffstat/
*http://invisible-island.net/diffstat/


[[분류: /usr/bin]]
[[분류: /usr/bin]]

2017년 7월 11일 (화) 03:42 기준 최신판

1 개요[ | ]

리눅스 diffstat
/usr/bin/diffstat
  • diff 파일에 대한 간단한 통계를 보여주는 프로그램

2 실습[ | ]

[root@zetawiki ~]# cat 1.txt
Hello
World
[root@zetawiki ~]# cat 2.txt
Hello
World!
Lorem
[root@zetawiki ~]# diff 1.txt 2.txt
2c2,3
< World
---
> World!
> Lorem
[root@zetawiki ~]# diff -u 1.txt 2.txt
--- 1.txt	2015-09-13 11:29:19.067001429 +0900
+++ 2.txt	2015-09-13 11:29:46.845001492 +0900
@@ -1,2 +1,3 @@
 Hello
-World
+World!
+Lorem
[root@zetawiki ~]# diff -u 1.txt 2.txt > 3.diff
[root@zetawiki ~]# diffstat 3.diff
 2.txt |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

3 같이 보기[ | ]

4 참고[ | ]

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