1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ko/osx/cat.md

33 lines
881 B
Markdown
Raw Normal View History

# cat
> 파일을 출력하고 연결합니다.
> 더 많은 정보: <https://keith.github.io/xcode-man-pages/cat.1.html>.
- 파일의 내용을 `stdout`에 출력:
`cat {{경로/대상/파일}}`
- 여러 파일을 연결하여 출력 파일로 저장:
`cat {{경로/대상/파일1 경로/대상/파일2 ...}} > {{경로/대상/출력_파일}}`
- 여러 파일을 출력 파일에 추가:
`cat {{경로/대상/파일1 경로/대상/파일2 ...}} >> {{경로/대상/출력_파일}}`
- 파일의 내용을 버퍼링 없이 출력 파일로 복사:
`cat -u {{/dev/tty12}} > {{/dev/tty13}}`
- `stdin`을 파일에 기록:
`cat - > {{경로/대상/파일}}`
- 모든 출력 줄에 번호 매기기:
`cat -n {{경로/대상/파일}}`
- 출력하지 않는 문자와 공백 문자 표시 (`M-` 접두사가 붙은 경우 비-ASCII):
`cat -v -t -e {{경로/대상/파일}}`