$test="hello world"
$python -c "print '$test'.split()[1]"
world
或者
$test="hello world"
$a="$(python -c "print '$test'.split()[1]")"
$echo $a
world
$test="hello world"
$python -c "print '$test'.split()[1]"
world
或者
$test="hello world"
$a="$(python -c "print '$test'.split()[1]")"
$echo $a
world