LoginSignup
0
0

More than 5 years have passed since last update.

[Bash] Remove duplicate lines

Posted at
sort -u file.txt > no_duplicate.txt

Before:

file.txt
file1.txt
file2.txt
file1.txt
file3.txt
file2.txt

After:

no_duplicate.txt
file1.txt
file2.txt
file3.txt
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0