Подскажите софт для сравнения 2 тхт файлов между собой удалив дубли??

Discussion in 'Песочница' started by Antondollar, 5 Apr 2018.

  1. Antondollar

    Antondollar New Member

    Joined:
    31 Oct 2017
    Messages:
    10
    Likes Received:
    1
    Reputations:
    0
  2. andword

    andword Active Member

    Joined:
    8 Sep 2010
    Messages:
    173
    Likes Received:
    162
    Reputations:
    10
    #2 andword, 5 Apr 2018
    Last edited: 5 Apr 2018
  3. axpo

    axpo Member

    Joined:
    28 Mar 2012
    Messages:
    14
    Likes Received:
    9
    Reputations:
    0
    file1file2 - отобрать строки файла 1 которые есть в файле 2
    file1file2-2 - удалить строки файла 1 которые есть в файле 2
    https://cloud.mail.ru/public/56Ko/wiuQrHoyc
     
  4. dmax0fw

    dmax0fw Level 8

    Joined:
    31 Dec 2017
    Messages:
    106
    Likes Received:
    128
    Reputations:
    46
    Code:
    cat file1 > tmpfile
    cat file2 >> tmpfile
    sort tmpfile | uniq -u > result
    rm -f tmpfile
     
    Muracha likes this.
  5. Antondollar

    Antondollar New Member

    Joined:
    31 Oct 2017
    Messages:
    10
    Likes Received:
    1
    Reputations:
    0
    Всем спасибо за помощь
     
    dedicmart likes this.
  6. dedicmart

    dedicmart Member

    Joined:
    14 May 2018
    Messages:
    6
    Likes Received:
    6
    Reputations:
    0
    SeoHacker likes this.
Loading...