hans

hans

【Shell】Remove duplicate content in the document


cat old.txt | sort | uniq > new.txt

Sort first, then remove adjacent duplicate content, and save it to a new document.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.