Skip to content

Commit

Permalink
Update pages.zh/linux/sed.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zjuyk and kbdharun authored May 30, 2024
1 parent bd093ab commit 5da1c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages.zh/linux/sed.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

- 删除文件第一行:

`sed -i 1d {{文件路径}}`
`sed -i 1d {{路径/到/文件}}`

- 插入新行到文件的第一行:

`sed -i '1i\新行内容\' {{文件路径}}`
`sed -i '1i\your new line text\' {{路径/到/文件}}`

0 comments on commit 5da1c53

Please sign in to comment.