I have run into a problem while doing some coding, and I need to compare two files, here is an example input file
car php module so js node array
and another input file:
car module js array so
The two files are compared, and as you see on
php does not exist.
Here is the output file
outputfile1.txt produced by
command inputfile1.txt inputfile2.txt > outputfile1.txt:
car module js array so php node
The output file adds missing values that appeared on
inputfile1.txt, but not
inputfile2.txt. They are the last two lines.
I have tried a few things with
grep but none shows my desired output.
I am using OSX.