How to quickly delete duplicate data rows in Linux files

  
                

In Linux system operation, if there is too much data in the file, it is very troublesome to delete the duplicate data line. If the search is inconvenient, is there any way to quickly delete the file duplicate data line? The following small series will introduce you how to delete duplicate data lines, let's take a look.

a, remove duplicate data adjacent rows

code is as follows:

$ cat data1.txt

Copyright © Windows knowledge All Rights Reserved