mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
17 lines
440 B
Markdown
17 lines
440 B
Markdown
![]() |
# cut
|
||
|
|
||
|
> `stdin` 또는 파일에서 필드를 잘라냅니다.
|
||
|
> 더 많은 정보: <https://keith.github.io/xcode-man-pages/cut.1.html>.
|
||
|
|
||
|
- 각 줄의 특정 문자/필드 범위 출력:
|
||
|
|
||
|
`{{명령어}} | cut -{{c|f}} {{1|1,10|1-10|1-|-10}}`
|
||
|
|
||
|
- 특정 구분자로 각 줄의 필드 범위 출력:
|
||
|
|
||
|
`{{명령어}} | cut -d "{{,}}" -f {{1}}`
|
||
|
|
||
|
- 특정 파일의 각 줄에서 문자 범위 출력:
|
||
|
|
||
|
`cut -c {{1}} {{경로/대상/파일}}`
|