【Shell】Remove duplicate content in the documentApr 25, 2017#Shell51AI TranslationThis post is translated from Chinese into English through AI.View Original cat old.txt | sort | uniq > new.txt Sort first, then remove adjacent duplicate content, and save it to a new document.---