Skip to content

Instantly share code, notes, and snippets.

@math3vz
Last active April 17, 2018 14:18
Show Gist options
  • Select an option

  • Save math3vz/fd489da1a42814e513068eea9ae3ae1a to your computer and use it in GitHub Desktop.

Select an option

Save math3vz/fd489da1a42814e513068eea9ae3ae1a to your computer and use it in GitHub Desktop.

Revisions

  1. math3vz revised this gist Apr 17, 2018. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions get_diff_between_two_files.md
    Original file line number Diff line number Diff line change
    @@ -11,4 +11,9 @@ c
    [matheusmmo@bbrandsti-07:~]
    [11:14:48] $ grep -xvFf a.txt b.txt
    c
    -x, --line-regexp force PATTERN to match only whole lines
    -v, --invert-match select non-matching lines
    -F, --fixed-strings PATTERN is a set of newline-separated strings
    -f, --file=FILE obtain PATTERN from FILE
    ```
  2. math3vz created this gist Apr 17, 2018.
    14 changes: 14 additions & 0 deletions get_diff_between_two_files.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ```[matheusmmo@bbrandsti-07:~]
    [11:14:07] $ cat a.txt
    a
    b
    [matheusmmo@bbrandsti-07:~]
    [11:14:47] $ cat b.txt
    b
    c
    [matheusmmo@bbrandsti-07:~]
    [11:14:48] $ grep -xvFf a.txt b.txt
    c
    ```