1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-24 00:02:09 +02:00
tldr/pages.ko/common/sd.md
코드싸이 4b5248236b
common/s*: add and update Korean translation (#14666)
* common/s*: add and update Korean translation

* scamper: fix typo

* Update pages.ko/common/simplehttpserver.md

Co-authored-by: Chooooo <contact@choo.ooo>

* Update pages.ko/common/steamcmd.md

Co-authored-by: Chooooo <contact@choo.ooo>

---------

Co-authored-by: Sebastiaan Speck <shem.speck@gmail.com>
Co-authored-by: Chooooo <contact@choo.ooo>
2024-11-09 10:41:41 +09:00

20 lines
707 B
Markdown

# sd
> 직관적인 찾기 및 바꾸기 도구.
> 더 많은 정보: <https://github.com/chmln/sd>.
- 정규식을 사용하여 공백 제거 (출력 스트림: `stdout`):
`{{echo 'lorem ipsum 23 '}} | sd '\s+$' ''`
- 캡처 그룹을 사용하여 단어 바꾸기 (출력 스트림: `stdout`):
`{{echo 'cargo +nightly watch'}} | sd '(\w+)\s+\+(\w+)\s+(\w+)' 'cmd: $1, channel: $2, subcmd: $3'`
- 특정 파일에서 찾기 및 바꾸기 (출력 스트림: `stdout`):
`sd -p {{'window.fetch'}} {{'fetch'}} {{경로/대상/파일.js}}`
- 현재 프로젝트의 모든 파일에서 찾기 및 바꾸기 (출력 스트림: `stdout`):
`sd {{'from "react"'}} {{'from "preact"'}} "$(find . -type f)"`