Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Diff-ing files with Linux command

Tags:

linux

diff

What Linux command allow me to check if all the lines in file A exist in file B? (it's almost like a diff, but not quite). Also file A has uniq lines, as is the case with file B as well.

like image 845
syker Avatar asked Dec 31 '25 01:12

syker


2 Answers

The comm command compares two sorted files, line by line, and is part of GNU coreutils.

like image 193
Wesley Rice Avatar answered Jan 02 '26 17:01

Wesley Rice


Are you looking for a better diff tool?

https://stackoverflow.com/questions/12625/best-diff-tool

like image 27
Sonny Saluja Avatar answered Jan 02 '26 17:01

Sonny Saluja



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!