If you use diff, which has no option -I, you can cross out lines containing stars into temp files, and then split the temporary files. If you use bash, you can use the "two channels", but if you have a chance that you have diff with the parameter -I. In any case, it will be
sed 's/*$//' file1 >file1.temp
sed 's/*$//' file2 >file2.temp
diff file1.temp file2.temp
or
diff <(sed 's/*$//' file1) <(sed 's/*$//' file2)
(not tested, but it can work in other shells)
the
“star” note is deleted, and in terms of differences it never existed.
source
share