行首空格删除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