使用sed删除行首空格,tab

sed 's/^[ \t]*//g' file

sed 's/^ *//g' file

猜你喜欢

转载自zzuwxf.iteye.com/blog/1412244