FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


Sidebar


Top     SiteMap

Manager Server

Target Server

$FHHOME/bin/xxx.sh | xxxx.exp













.

appendix:sed.html



This is an old revision of the document!


Top#Appendix

How to use sed command in Linux

About sed command


Example

Delete row

$ cat test.txt
123
456
789
abc
def
$ cat test.txt | sed -e "/789/d"
123
456
abc
def

Append row

$ cat test.txt
123
456
abc
def
$ cat test.txt | sed -e "/456/a 789"
123
456
789
abc
def

Insert row

$ cat test.txt
123
456
abc
def
$ cat test.txt | sed -e "/456/i aaa"
123
aaa
456
abc
def




Top#Appendix



appendix/sed.html.1517499750.txt.gz ยท Last modified: 2018/02/02 00:42 by kurihara