shell 及相关 / 未分类 · 2016年7月10日

sed 指定行后添加行–tag

在29行之后添加
sed -i '29a user=mysql' /etc/my.cnf
sed -i '29a character-set-server=utf8' /etc/my.cnf
sed -i '29ainnodb_file_per_table=1' /etc/my.cnf