7/26/2018

sed print lines between patterns

$ seq 1 100 > test
$ sed -n '/^12$/,/^15$/p' test
12
13
14
15

https://unix.stackexchange.com/questions/264962/print-lines-of-a-file-between-two-matching-patterns

没有评论: