Removing duplicate lines in a file
Removing duplicate lines with uniq use the command:
uniq in_file out_file
Only works on files that are sorted
To sort a file use
sort filename
- Manager's blog
- Log in or register to post comments
Removing duplicate lines with uniq use the command:
uniq in_file out_file
Only works on files that are sorted
To sort a file use
sort filename