"리눅스 문자열 길이순 정렬"의 두 판 사이의 차이

(새 문서: ==개요== ;리눅스 문자열 길이순 정렬 <source lang='console'> $ awk '{ print length(), $0 | "sort -n" }' /usr/share/dict/words ... 29 cyclotrimethylenetrinitramine 29 tri...)
 
4번째 줄: 4번째 줄:
<source lang='console'>
<source lang='console'>
$ awk '{ print length(), $0 | "sort -n" }'  /usr/share/dict/words
$ awk '{ print length(), $0 | "sort -n" }'  /usr/share/dict/words
1 2
1 a
1 A
1 b
1 B
1 c
1 C
1 d
1 D
1 e
...
...
27 electroencephalographically
27 hydroxydesoxycorticosterone
27 microspectrophotometrically
28 antidisestablishmentarianism
28 hydroxydehydrocorticosterone
29 cyclotrimethylenetrinitramine
29 cyclotrimethylenetrinitramine
29 trinitrophenylmethylnitramine
29 trinitrophenylmethylnitramine
11번째 줄: 26번째 줄:
45 pneumonoultramicroscopicsilicovolcanoconiosis
45 pneumonoultramicroscopicsilicovolcanoconiosis
</source>
</source>


==같이 보기==
==같이 보기==

2020년 3월 31일 (화) 17:53 판

1 개요

리눅스 문자열 길이순 정렬
$ awk '{ print length(), $0 | "sort -n" }'  /usr/share/dict/words
1 2
1 a
1 A
1 b
1 B
1 c
1 C
1 d
1 D
1 e
...
27 electroencephalographically
27 hydroxydesoxycorticosterone
27 microspectrophotometrically
28 antidisestablishmentarianism
28 hydroxydehydrocorticosterone
29 cyclotrimethylenetrinitramine
29 trinitrophenylmethylnitramine
30 half-embracinghalf-embracingly
31 dichlorodiphenyltrichloroethane
45 pneumonoultramicroscopicsilicovolcanoconiosis

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}