# code-block-pro/1.7.0/build/shiki/samples/diff.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.7.0. 28 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.7.0/code/build/shiki/samples/diff.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.7.0/raw/build/shiki/samples/diff.sample
- Modified: 2022-08-22T22:25:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.7.0/code/build/shiki/samples/diff.sample#L10-L20`.

```
$ 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/
```
