我试图使用sed删除空行:
sed '/^$/d'
但我没有运气.
例如,我有这些行:
xxxxxx yyyyyy zzzzzz
我希望它像:
应该是什么代码?
unix linux sed
linux ×1
sed ×1
unix ×1