$test="hello world"

$python -c "print '$test'.split()[1]"

world

或者

$test="hello world"

$a="$(python -c "print '$test'.split()[1]")"

$echo $a

world

05-24 09:56