forked from shikijs/textmate-grammars-themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiff.sample
28 lines (25 loc) · 3.03 KB
/
diff.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$ cat file1.txt
cat
mv
comm
cp
$ cat file2.txt
cat
cp
diff
comm
$ diff -c file1.txt file2.txt
*** file1.txt Thu Jan 11 08:52:37 2018
--- file2.txt Thu Jan 11 08:53:01 2018
***************
*** 1,4 ****
cat
- mv
- comm
cp
--- 1,4 ----
cat
cp
+ diff
+ comm
# From https://www.geeksforgeeks.org/diff-command-linux-examples/