Removing lines from a file

Discussion in 'Shell Script' started by Mark Workman, Jan 4, 2018.

  1. Mark Workman

    Mark Workman New Member

    Joined:
    Jan 4, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    I have 2 files, File1 contains 4,000 barcodes
    file2 contains 35,000 lines of data of which the 1st 8 chars are a barcode.
    I need to read each barcode in file1 and if that barcode exists in file2 delete the line containing that barcode.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice