1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-01 14:55:31 +02:00
tldr/pages.ko/linux/nl.md
lyj 31820a6d5d
nl: remove needless - (#16952)
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-24 13:19:09 +00:00

36 lines
1.1 KiB
Markdown

# nl
> 파일이나 `stdin`에서 각 줄에 번호를 매깁니다.
> 더 많은 정보: <https://manned.org/nl>.
- 파일에서 빈 줄이 아닌 줄에 번호 매기기:
`nl {{경로/대상/파일}}`
- `stdin`에서 읽기:
`{{명령어}} | nl`
- 빈 줄을 포함한 모든 본문 줄에 번호를 매기거나 본문 줄에 번호를 매기지 않기:
`nl {{[-b|--body-numbering]}} {{a|n}} {{경로/대상/파일}}`
- 기본 정규 표현식(BRE) 패턴과 일치하는 본문 줄에만 번호 매기기:
`nl {{[-b|--body-numbering]}} p'FooBar[0-9]' {{경로/대상/파일}}`
- 줄 번호 매기기에 특정 [i]크기 사용:
`nl {{[-i|--line-increment]}} {{크기}} {{경로/대상/파일}}`
- 줄 번호 매기기 형식을 오른쪽 정렬 또는 왼쪽 정렬로 지정하고, 앞쪽에 0을 유지할지 여부 지정:
`nl {{[-n|--number-format]}} {{rz|ln|rn}}`
- 줄 번호 매기기의 [w]너비 지정 (기본값은 6):
`nl {{[-w|--number-width]}} {{열_너비}} {{경로/대상/파일}}`
- 줄 번호와 줄을 구분하는 특정 문자열 사용 (기본값은 탭):
`nl {{[-s|--number-separator]}} {{구분자}} {{경로/대상/파일}}`