开通VIP,畅享免费电子书等14项超值服
首页
好书
留言交流
下载APP
联系客服
2016.01.08
去掉空白行:
tr -s ["\012"] < test.txt > newtest.txt
sed -n '/./p' temp_file5 > newtest.txt
grep . temp_file5 > newtest.txt
grep -v '^$' temp_file5 > newtest.txt
去掉多余空格:
cat test.txt | tr -s [:space:]
sed 's/__*/_/g' test.txt 这里,_表示一个空格
微信登录中...请勿关闭此页面