[HN Gopher] Checking It Twice
       ___________________________________________________________________
        
       Checking It Twice
        
       Author : arm
       Score  : 21 points
       Date   : 2021-09-17 01:48 UTC (3 days ago)
        
 (HTM) web link (leancrew.com)
 (TXT) w3m dump (leancrew.com)
        
       | herne wrote:
       | I ended up with this in my .bashrc so I didn't have to keep
       | remembering how to use comm each time:                 justA()  {
       | comm -23 <(sort -u "$1") <(sort -u "$2"); }       justB()  { comm
       | -13 <(sort -u "$1") <(sort -u "$2"); }       bothAB() { comm -12
       | <(sort -u "$1") <(sort -u "$2"); }
        
       | rstuart4133 wrote:
       | Or just:                   vim -d file1 file2         :%!sort |
       | uniq -c         :wincmd l         :%!sort | uniq -c
        
         | teddyh wrote:
         | Emacs:                 emacs file1 file2       C-x h C-u M-| s
         | o r t | u n i q SPC - c RET       C-x 4 b RET       C-x h C-u
         | M-| M-p RET
         | 
         | Or did I misunderstand what those Vim commands were supposed to
         | do? They did not seem to work on my version of Vim.
        
       ___________________________________________________________________
       (page generated 2021-09-20 23:01 UTC)