行首空格删除sed -r ‘s/^\s+//g‘ 514.txtsed -e ‘s/^\s*//g‘ 514.txtsed ‘s/^ *//‘ 514.txt sed ‘s/^[[:space:]]*//‘ 514.txt awk ‘{sub(/^[ \t]+/, "")};1‘ 514.txt全部空格删除sed ‘/^ .*/s/ //g‘ 514.txt
sed去除行首空格
原文:http://www.cnblogs.com/lubing666666/p/4503187.html