Say I have dir1/ that has 1.a 2.a 3.a 5.a and dir2/ has 1.b 2.b 3.b 4.b 5.b. I wonder how can I ignore the extension, and find the missing file (4.b in this case). I assume that diff command doesn’t work as I don’t see relevant argument. Answer You can use the basename command to strip the basename: Then
Tag: difference
How do I do a one way diff in Linux?
How do I do a one way diff in Linux? Normal behavior of diff: Normally, diff will tell you all the differences between a two files. For example, it will tell you anything that is in file A that is not in file B, and will also tell you everything that is in file B, but not in file A.