最後更新: 2019-12-10
介紹
Sed (stream editor)
很詳細的 Documment: http://www.grymoire.com/Unix/Sed.html
目錄
- 常用 options
- Command
- 刪除()
-
取代(substitution)
Use variable in replacement - "|" ":" "@"
- print (簡寫 p)
- Comments
- Print line number with =
- Transform with y (1對1的)
- Grouping with { and }
- Adding(a), Inserting(i), Changing lines
- How sed Works
- Writing a file with the 'w' command
- Change configuration files setting value (ini file)