Shell:去除多余空格或Tab替换成一个空格
cat text|sed 's/[\t ]\+/ /g'参考:[1]linux系统中将文本中多个空格或多个tab转化为一个空格的命令 [博客园]
·
cat text|sed 's/[\t ]\+/ /g'
更多推荐
已为社区贡献2条内容
cat text|sed 's/[\t ]\+/ /g'参考:[1]linux系统中将文本中多个空格或多个tab转化为一个空格的命令 [博客园]
cat text|sed 's/[\t ]\+/ /g'
更多推荐
所有评论(0)