摘要: 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 阅读全文
posted @ 2013-03-29 12:27 风*依旧 阅读(379) 评论(0) 推荐(0) 编辑