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/common/tee.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

20 lines
710 B
Markdown

# tee
> `stdin`에서 읽고 `stdout` 및 파일(또는 명령어)로 쓰기.
> 더 많은 정보: <https://www.gnu.org/software/coreutils/manual/html_node/tee-invocation.html>.
- `stdin`을 각 파일과 `stdout`으로 복사:
`echo "example" | tee {{경로/대상/파일}}`
- 주어진 파일에 덧붙이기, 덮어쓰지 않음:
`echo "example" | tee -a {{경로/대상/파일}}`
- `stdin`을 터미널에 출력하고, 다른 프로그램으로 파이프하여 추가 처리:
`echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}`
- "example"이라는 디렉터리 만들기, "example"의 문자 수 세기, "example"을 터미널에 쓰기:
`echo "example" | tee >(xargs mkdir) >(wc -c)`