Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What is going on with this article?
@Stephanie

diffの便利な使い方

More than 1 year has passed since last update.

今回は2つのファイルで検証!

aaa
image.png

bbb
image.png

-u


$ `diff -u aaa bbb`
--- aaa 2018-05-31 20:33:58.375643964 +0900
+++ bbb 2018-05-31 20:34:51.719615526 +0900
@@ -1,5 +1,5 @@
 aaa
-bbb
+
 ccc
-ddd
 eee
+fff

-c

$ diff -c aaa bbb
*** aaa Thu May 31 20:33:58 2018
--- bbb Thu May 31 20:34:51 2018
***************
*** 1,5 ****
  aaa
! bbb
  ccc
- ddd
  eee
--- 1,5 ----
  aaa
!
  ccc
  eee
+ fff

個人的にはcオプション派:smile:

0
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
0
Help us understand the problem. What is going on with this article?