摘要:
1、行后追加命令 a (Append Line After)可以在指定的行后追加一行或多行文本,其基本语法为:$ sed '[address] a the-line-to-append' input-file示例,在最后一行后添加一行文本:$ sed '$ a 106,Jack Johnson,Engineer' employee.txt 101,John Doe,CEO 102,Jason Smith,IT Manager 103,Raj Reddy,Sysadmin 104,Anand Ram,Developer 105,Jane Miller,Sales 阅读全文