Top "Uniq" questions

uniq is a Unix/POSIX/Linux utility to remove or filter duplicate lines from a sorted file.

Is there a way to 'uniq' by column?

I have a .csv file like this: [email protected],2009-11-27 01:05:47.893000000,example.net,127.0.0.1 [email protected],2009-11-27 00:58:29.793000000,example.…

linux shell sorting uniq
Find unique lines

How can I find the unique lines and remove all duplicates from a file? My input file is 1 1 2 3 5 5 7 7 I would …

linux sorting unique uniq
Sort & uniq in Linux shell

What is the difference between the following to commands? sort -u FILE sort FILE | uniq

linux shell sorting uniq
Remove duplicate lines without sorting

I have a utility script in Python: #!/usr/bin/env python import sys unique_lines = [] duplicate_lines = [] for line in …

shell scripting filter uniq
remove white space in bash using sed

I have a file that contains a number followed by a file path on each line for a large amount …

bash unix sed whitespace uniq
How to print only the unique lines in BASH?

How can I print only those lines that appear exactly once in a file? E.g., given this file: mountain …

bash uniq
using Linux cut, sort and uniq

I have a list with population, year, and county and I need to cut the list, and then find the …

linux sorting cut uniq
How to do natural sort output of "uniq -c" in descending/acsending order? - unix

How to do natural sort on uniq -c output? When the counts are <10, the uniq -c | sort output looks …

sorting unix count uniq natural-sort
Bash output the line with highest value

my question is pretty much like this one but with one difference; i want the output the line that has …

linux bash sorting uniq
Find unique values from an array in React/js

I'm a beginner in JavaScript and an even bigger beginner in ReactJS. Most of the following I've taken from tutorials …

javascript reactjs uniq