linux remove blank line in file

引用

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

猜你喜欢

转载自j4s0nh4ck.iteye.com/blog/2238424