[root@oracle6 ~]# echo "a b c d" | sed 's/[ ][ ]*/ /g'
a b c d
[root@oracle6 ~]# echo "a b c d" | awk '{$1=$1;print}'
a b c d
[root@oracle6 ~]# echo "a b c d" | tr -s ' '
a b c d
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交