uniq [OPTION]... [INPUT [OUTPUT]]
2222222222 3333333333 4444444444 6665666666 9999999999 !!!!!!!!!! 7777777777
1111111111 2222222222 3333333333 4444444444 5555555555 6666666666 7777777777 @@@@@@@@@@
# cat line1.txt line2.txt | sort | uniq
# cat line1.txt line2.txt | sort | uniq -s 4
# cat line1.txt line2.txt | sort | uniq -c 1 !!!!!!!!!! 1 1111111111 2 2222222222 ...
# cat line1.txt line2.txt | sort(:12) | uniq -d
Copyrights © - Joinc, All Rights Reserved. Inherited From - Yundream Rebranded By - Joonphil
사용법
- -c, --count
해당 라인이 몇번 중복되었는지에 대한 정보를 출력한다.- -d, --repeated
중복되는 줄을 한번만 출력한다.- -D, --all-repeated=delimit-method
중복되는 모든 줄을 출력한다.- -i, --ignore-case
대소문자 구분을 하지 않는다.- -s, --skip-chars=N
처음에서 N번째 있는 문자는 비교에서 제외한다.- -u, --unique
유일한 줄만을 출력한다.사용예
# cat line1.txt line2.txt | sort | uniq -c 1 !!!!!!!!!! 1 1111111111 2 2222222222 ...Recent Posts
Archive Posts
Tags