1. sed command
sed '/^$/d' a.txt > output.txt
2. vim command
:g/^$/d
3. cat command
cat -s a.txt
4. vim command
:%!cat -s
linux remove blank line in file
最新推荐文章于 2021-02-16 19:52:27 发布
1. sed command
sed '/^$/d' a.txt > output.txt
2. vim command
:g/^$/d
3. cat command
cat -s a.txt
4. vim command
:%!cat -s