sed ‘/pattern/!p’ infile //匹配pattern的行不输出sed -n ‘1,2p’ infile //print line 1 to 2sed -n ‘2,$p’ file //print line 2 to end of line