FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
appendix:sed.html [2018/02/02 01:17] kurihara |
appendix:sed.html [2020/02/28 23:14] (current) kurihara [Insert row] |
||
---|---|---|---|
Line 48: | Line 48: | ||
\\ | \\ | ||
==== Insert row==== | ==== Insert row==== | ||
+ | <sxh bash toolbar: | ||
+ | $ cat test.txt | ||
+ | 123ab | ||
+ | 456ab | ||
+ | abcab | ||
+ | defab | ||
+ | $ cat test.txt | sed -e "/ | ||
+ | 123ab | ||
+ | aaa | ||
+ | 456ab | ||
+ | abcab | ||
+ | defab | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== Substitution ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ cat test.txt | $ cat test.txt | ||
Line 54: | Line 70: | ||
abc | abc | ||
def | def | ||
- | $ cat test.txt | sed -e "/456/i aaa" | + | $ cat test.txt | sed 's/456/789/g' |
123 | 123 | ||
- | aaa | + | 789 |
- | 456 | + | |
abc | abc | ||
def | def | ||
</ | </ | ||
- | \\ | ||
- | ==== Substitution ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ cat test.txt | $ cat test.txt |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.