Skip to content

Instantly share code, notes, and snippets.

@josue
Created December 30, 2013 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josue/8184483 to your computer and use it in GitHub Desktop.
Save josue/8184483 to your computer and use it in GitHub Desktop.
Output unique lines not common in two files.
#!/bin/sh
FILE1=$1
FILE2=$2
grep -n -v "`cat $FILE1`" $FILE2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment