March 9, 2018
Shell: sed 获取匹配串的行号, sed删除某一行, sed打印某一行, sed print particular line number
做一个文本文件做测试:
Given below is content of file called test. Absolute path is /tmp/test
This is a test
for sed command
to be performed
on test server
Hello World
How do you do
本教程使用两种模式:We are using two methods in this tutorial
模式一: 使用‘d’ 删除 ,Method 1 : By using ‘d’ command i.e for delete
模式二: 使用‘p’ 打印, Method 2 : By using ‘p’ command i.e for print
SED… Read More