Skip to main content
5 events
when toggle format what by license comment
Jul 20, 2014 at 11:31 comment added Zaz @Michael: comm -3 (see man comm).
Aug 21, 2013 at 0:22 comment added Michael Francis Also, I found that comm <(ls DIR1) <(ls DIR2) did not work recursively. For that I used comm <(ls -R1 DIR1) <(ls -R1 DIR2). ls -R crawls through directories recursively, and ls -1 (note that that is a one, not an L) makes ls print only one filename per line.
Aug 21, 2013 at 0:14 comment added Michael Francis I tried it, and (from what I can tell) the output was: all the files only in DIR1 in column 1, all the files only in DIR2 in column 2, and all the files shared by both in column 3. That's sort of useful, but do you know how one might strip out column 3 and leave only the differences? I have a lot of files to sort through, and most of it is identical. I don't need to see what's the same.
Aug 20, 2013 at 23:59 comment added Michael Francis Where is DIR3 specified? All I see is DIR1 and DIR2.
Oct 14, 2011 at 10:30 history answered kyrisu CC BY-SA 3.0