追加(行下):a\命令 3 C/ S8 z7 N8 T
将 this is a test line 追加到 以test 开头的行后面:3 [7 \0 R, G. _8 Y6 ^- `
sed '/^test/a\this is a test line' file 2 k9 H: J# }. A; K1 T在 test.conf 文件第2行之后插入 this is a test line: % T/ T5 e3 c) k' Psed -i '2a\this is a test line' test.conf