1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 14:42:07 +02:00
tldr/pages.ko/common/wc.md
K.B.Dharun Krishna 898f711019
pages/*: update GNU coreutils links, sync translation pages (#15543)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2025-01-18 18:45:33 +05:30

670 B

wc

줄 단어 및 바이트 수 계산. 더 많은 정보: https://www.gnu.org/software/coreutils/manual/html_node/wc-invocation.html.

  • 파일의 모든 줄 수 계산:

wc --lines {{경로/대상/파일}}

  • 파일의 모든 단어 수 계산:

wc --words {{경로/대상/파일}}

  • 파일의 모든 바이트 수 계산:

wc --bytes {{경로/대상/파일}}

  • 파일의 모든 문자 수 계산(멀티바이트 문자 고려):

wc --chars {{경로/대상/파일}}

  • stdin의 모든 줄, 단어 및 바이트 수를 계산:

{{find .}} | wc

  • 가장 긴 줄의 길이를 문자 수로 계산:

wc --max-line-length {{경로/대상/파일}}