Подскажите софт для сравнения 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 Elder - Старейшина

    Joined:
    8 Sep 2010
    Messages:
    175
    Likes Received:
    168
    Reputations:
    11
    #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:
    107
    Likes Received:
    131
    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:
    5
    Likes Received:
    6
    Reputations:
    0
    SeoHacker likes this.
Loading...
Similar Threads - Подскажите софт сравнения
  1. navai
    Replies:
    3
    Views:
    3,099
  2. Serverov
    Replies:
    0
    Views:
    1,938