码迷,mamicode.com
首页 > 系统相关 > 详细

shell

时间:2020-04-22 11:33:40      阅读:71      评论:0      收藏:0      [点我收藏+]

标签:sed   color   pre   空格   style   pac   nbsp   span   bsp   

 

1. 删除空行

sed ‘/^$/d‘  file

2. 删除行首空格

sed ‘s/^ *//g‘ file
sed ‘s/^[[:space:]]*//g‘ file

 

shell

标签:sed   color   pre   空格   style   pac   nbsp   span   bsp   

原文地址:https://www.cnblogs.com/taoXiang/p/12750796.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!