#!/bin/ksh
shit=""
export shit
shit=$(su - grid -c 'echo $ORACLE_BASE')
pvar=$(subvar="hello shell"; echo $subvar)
echo $pvar
echo $shit
转载于:https://www.cnblogs.com/xiaochou/p/6016925.html
#!/bin/ksh
shit=""
export shit
shit=$(su - grid -c 'echo $ORACLE_BASE')
pvar=$(subvar="hello shell"; echo $subvar)
echo $pvar
echo $shit
转载于:https://www.cnblogs.com/xiaochou/p/6016925.html