Skip to content

Instantly share code, notes, and snippets.

@GitarPlayer
Last active March 4, 2022 08:51
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
grep that compares two configs a and b and finds all config lines present in file a and not in b. Of course a diff could do that, but sometimes you don't want to deal with the order or the differences of whitespaces. between the configs.
cat a
a
b
c
d
e
cat b
c
d
e
grep -Fxvf b a
a
b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment