标签:sed color pre 空格 style pac nbsp span bsp
1. 删除空行
sed ‘/^$/d‘ file
2. 删除行首空格
sed ‘s/^ *//g‘ file sed ‘s/^[[:space:]]*//g‘ file
shell
原文地址:https://www.cnblogs.com/taoXiang/p/12750796.html