# cat -A user_passwd.txt
test:123$
$
$
oracle:1$
$
$
$
# awk '{printf "%s ",$0}' user_passwd.txt
test:123 oracle:1
# cat user_passwd.txt | tr -s "\n" " "
test:123 oracle:1
# echo `cat user_passwd.txt`
test:123 oracle:1
# while read line; do echo -n $line\ ; done < user_passwd.txt
test:123 oracle:1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22661144/viewspace-1412888/
,如需转载,请注明出处,否则将追究法律责任。