mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-22 23:11:29 +08:00
chore: format markdown code. (#42)
* format: fix markdown * update: fix markdown * update: fix cron problems * update: delete .markdownlintignore * update * chore: add tab -> 4 space * chore: fix tab -> 2 in the .editorconfig
This commit is contained in:
11
docs/sed.md
11
docs/sed.md
@ -71,8 +71,8 @@ Sed 命令
|
||||
### 命令
|
||||
<!--rehype:wrap-class=col-span-2-->
|
||||
|
||||
命令 | 示例 | 描述
|
||||
:- | :- |:-
|
||||
命令 | 示例 | 描述
|
||||
:- | :- |:-
|
||||
`p` | sed -n '1,4 p' input.txt | 打印第 1-4 行
|
||||
`p` | sed -n -e '1,4 p' -e '6,7 p' input.txt | 打印第 1-4 行和第 6-7 行
|
||||
`d` | sed '1,4 d' input.txt | 打印除 1-4 之外的行
|
||||
@ -83,8 +83,8 @@ Sed 命令
|
||||
|
||||
### 空间命令
|
||||
|
||||
命令 | 描述
|
||||
:- | :-
|
||||
命令 | 描述
|
||||
:- | :-
|
||||
`n` | 打印模式空间,空模式空间,读取下一行
|
||||
`x` | 用保持空间交换模式空间
|
||||
`h` | 复制模式空间以保持空间
|
||||
@ -99,7 +99,7 @@ $ sed 's/old/new/[flags]' [input-file]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
| Flag | Description |
|
||||
|----------|--------------------------------------------|
|
||||
| `g` | 全球替代 |
|
||||
@ -109,7 +109,6 @@ $ sed 's/old/new/[flags]' [input-file]
|
||||
| `I` | 搜索时忽略大小写 |
|
||||
| `e` | 在命令行中替换并执行 |
|
||||
|
||||
|
||||
### 循环命令
|
||||
|
||||
| Command | Description |
|
||||
|
Reference in New Issue
Block a user