sed 给文件每行末尾追加相同字符

给文件file1每行末尾追加字符 ;

sed 's/$/;/' file1

原文地址:https://www.cnblogs.com/linkenpark/p/8808237.html