We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
'Uniq' command #4
'Uniq' command #4
Sort by
recency
|
31 Discussions
|
Please Login in order to post a comment
simply
uniq -u
uniq -c | awk {'if(2,$3'}
while read line do echo "$line" >> file.txt done
cat file.txt | uniq -d > file2.txt
cat file.txt | uniq > file3.txt
diff file2.txt file3.txt | grep + | tr -d '+++' | awk 'NR > 2 {print}'
uniq -u
-u or –unique
It is used to print the unique lines only.