You are viewing a single comment's thread. Return to all comments →
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}'
Seems like cookies are disabled on this browser, please enable them to open this website
'Uniq' command #4
You are viewing a single comment's thread. Return to all comments →
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}'