原输出:
[root@ARPGTest ~]# mysql -p`cat /data/save/mysql_root` pro_manager -e'select erlang_script,sql_script,file_list from oms_hotswap_plan\G' -sN
*************************** 1. row ***************************
u:u([util]).
u:u([log]).
select * from version;
select * from version;
server/ebin/util.beam
server/ebin/log.beam
 
 
把换行替换成空格输出
[root@ARPGTest ~]# mysql -p`cat /data/save/mysql_root` pro_manager -e'select REPLACE(erlang_script,"\r\n"," ") as erlang_script,replace(sql_script,"\r\n"," ") as sql_script,replace(file_list,"\r\n"," ") from oms_hotswap_plan\G' -sN
*************************** 1. row ***************************
u:u([util]).  u:u([log]).
select * from version;  select * from version;
server/ebin/util.beam  server/ebin/log.beam
04-27 22:05