tr 删除换行

[oracle@oadb ~]$ cat -n a2.sh
     1	sh ./xx.sh select *
     2	from 
     3	test
[oracle@oadb ~]$ cat a2.sh | tr "
" " "
sh ./xx.sh select * from  test [oracle@oadb ~]$ 
原文地址:https://www.cnblogs.com/hzcya1995/p/13349028.html