取出行首空白符

echo "  hello" | sed 's/^[ \t]*//g'

原文地址:https://www.cnblogs.com/pigerhan/p/2789217.html