I have noticed that even when using the correct synatx, uniq does not remove the lines I have echoed into a file.
say, I echo in the following:
so the file contains those lines.Code:echo "Line1" >> file echo "Line2" >> file echo "Line1" >> file
Then, I run it through uniq:
but the contents of file_no_duplicates is still the same. I have tried it multiple different ways, but can't figure it out. Any ideas why?Code:cat file | uniq >> file_no_duplicates