1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 00:46:03 +02:00
This commit is contained in:
Sebastiaan Speck 2025-06-06 03:39:47 +03:00 committed by GitHub
commit 638cb028df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View file

@ -16,18 +16,18 @@
`sed {{[-i|--in-place]}} 's/apple/mango/g' {{path/to/file}}`
- 特定のスクリプトファイル([f]ile)を実行し、結果を`stdout`に出力する:
- 特定のスクリプトファイルを実行し、結果を`stdout`に出力する:
`{{command}} | sed {{-f|--file}} {{path/to/script.sed}}`
`{{command}} | sed {{[-f|--file]}} {{path/to/script.sed}}`
- 最初の行だけを`stdout`に出力する:
`{{command}} | sed {{[-n|--quiet]}} '1p'`
- ファイルの最初の行を削除([d]elete)する:
- ファイルの最初の行を削除する:
`sed {{[-i|--in-place]}} 1d {{path/to/file}}`
- ファイルの先頭行に改行を挿入([i]nsert)する:
- ファイルの先頭行に改行を挿入する:
`sed {{[-i|--in-place]}} '1i\your new line text\' {{path/to/file}}`

View file

@ -16,18 +16,18 @@
`sed {{[-i|--in-place]}} 's/apple/mango/g' {{경로/대상/파일}}`
- 특정 스크립트 [f]파일을 실행하고 결과를 `stdout`에 출력:
- 특정 스크립트 파일을 실행하고 결과를 `stdout`에 출력:
`{{command}} | sed {{-f|--file}} {{경로/대상/스크립트.sed}}`
`{{command}} | sed {{[-f|--file]}} {{경로/대상/스크립트.sed}}`
- 첫 번째 줄만 `stdout`에 출력:
`{{command}} | sed {{[-n|--quiet]}} '1p'`
- 파일의 첫 번째 줄 [d]삭제:
- 파일의 첫 번째 줄 삭제:
`sed {{[-i|--in-place]}} 1d {{경로/대상/파일}}`
- 파일의 첫 번째 줄에 새 줄 [i]삽입:
- 파일의 첫 번째 줄에 새 줄 삽입:
`sed {{[-i|--in-place]}} '1i\your new line text\' {{경로/대상/파일}}`