shell
1. 删除空行
sed ‘/^$/d‘ file
2. 删除行首空格
sed ‘s/^ *//g‘ file sed ‘s/^[[:space:]]*//g‘ file
相关推荐
thickbookszone 2020-10-16
rechanel 2020-11-16
laisean 2020-11-11
zhangjie 2020-11-11
大牛牛 2020-10-30
firefaith 2020-10-30
liguojia 2020-10-20
wangzhaotongalex 2020-10-20
CARBON 2020-10-20
JohnYork 2020-10-16
xiaonamylove 2020-10-16
Julyth 2020-10-16